Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux premium181.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User : ventnesy ( 2514)
PHP Version : 8.3.30
Disable Function : NONE
Directory :  /home/ventnesy/public_html/wp-content/plugins/jet-menu/integration/plugins/polylang/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/ventnesy/public_html/wp-content/plugins/jet-menu/integration/plugins/polylang/functions.php
<?php
/**
 * Jet Menu Polylang compatibility
 */

add_filter( 'jet-menu/public-manager/menu-location', 'jet_menu_polylang_fix_location' );

/**
 * Fix menu location for Polylang plugin
 *
 * @param  string $location Default location
 * @return string
 */
function jet_menu_polylang_fix_location( $location ) {

	// Ensure Polylang is active.
	if ( ! function_exists( 'PLL' ) || ! PLL() instanceof PLL_Frontend ) {
		return $location;
	}

	$new_location = PLL()->nav_menu->combine_location( $location, PLL()->curlang );

	return $new_location;

}

Al-HUWAITI Shell