/
home
/
techb158
/
l2hypotheques.com
/
wp-content
/
plugins
/
polylang
/
src
/
modules
/
Blocks
/
/home/techb158/l2hypotheques.com/wp-content/plugins/polylang/src/modules/Blocks
mkdir
upload
Name
Size
Mode
Actions
Language_Switcher/
-
0755
rm
load.php
575
0644
edit
dl
rm
Edit:
/home/techb158/l2hypotheques.com/wp-content/plugins/polylang/src/modules/Blocks/load.php
(575B)
<?php /** * @package Polylang */ namespace WP_Syntex\Polylang\Blocks; use WP_Syntex\Polylang\Blocks\Language_Switcher\Standard\Block as Standard_Block; use WP_Syntex\Polylang\Blocks\Language_Switcher\Navigation\Block as Navigation_Block; if ( ! defined( 'ABSPATH' ) ) { exit; // Don't access directly. } add_action( 'pll_init', function ( $polylang ) { if ( $polylang->model->has_languages() ) { $polylang->switcher_block = ( new Standard_Block( $polylang ) )->init(); $polylang->navigation_block = ( new Navigation_Block( $polylang ) )->init(); } } );
Save
cmd:
run