HEX
Server: Apache
System: Linux webd001.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: mciraet (192513)
PHP: 8.2.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/mciraet/www/wp-content/plugins/polylang-pro/src/modules/Editors/load.php
<?php
/**
 * @package Polylang-Pro
 */

use WP_Syntex\Polylang_Pro\Editors\Screens\Post;
use WP_Syntex\Polylang_Pro\Editors\Screens\Site;
use WP_Syntex\Polylang_Pro\Editors\Screens\Widget;
use WP_Syntex\Polylang_Pro\Editors\Filter_Preload_Paths;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Don't access directly.
}

add_action(
	'pll_init',
	function ( $polylang ) {
		if (
			$polylang->model->languages->has()
			&& $polylang instanceof PLL_Admin
			&& pll_use_block_editor_plugin()
		) {
			$polylang->site_editor   = ( new Site( $polylang ) )->init();
			$polylang->post_editor   = ( new Post( $polylang ) )->init();
			$polylang->widget_editor = ( new Widget( $polylang ) )->init();
			$polylang->filter_path   = ( new Filter_Preload_Paths( $polylang ) )->init();
		}
	}
);