$location ) { if ( strpos( $id, "___{$lang}" ) !== false ) { unset( $quadmenu_locations[ $id ] ); } } } } } function active() { global $quadmenu, $quadmenu_locations, $quadmenu_active_locations; if ( function_exists( 'pll_languages_list' ) ) { foreach ( $quadmenu_active_locations as $id => $theme ) { foreach ( pll_languages_list() as $lang ) { if ( strpos( $id, "___{$lang}" ) === false ) { $quadmenu_active_locations[ "{$id}___{$lang}" ] = $quadmenu_active_locations[ $id ]; } } } } } public static function instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } }