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/share-slug/load.php
<?php
/**
 * @package Polylang-Pro
 */

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

if ( $polylang->model->has_languages() ) {
	add_filter(
		'pll_settings_modules',
		function ( $modules ) {
			$k = array_search( 'PLL_Settings_Preview_Share_Slug', $modules, true );
			if ( $k ) {
				$modules[ $k ] = 'PLL_Settings_Share_Slug';
			}
			return $modules;
		},
		20 // After Polylang.
	);

	if ( get_option( 'permalink_structure' ) && $polylang->options['force_lang'] ) {
		$polylang->share_post_slug = new PLL_Share_Post_Slug( $polylang );
		$polylang->share_term_slug = new PLL_Share_Term_Slug( $polylang );
	}
}