wpml_active_languages

wpml_active_languages

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: all-in-one-seo-pack.4.8.1

apply_filters('wpml_active_languages') is found 2 times:

  • /app/Common/Sitemap/Localization.php line 33
    	public function __construct() {
    		if ( aioseo()->helpers->isWpmlActive() ) {
    			self::$wpml = [
    				'defaultLanguage' => apply_filters( 'wpml_default_language', null ),
    				'activeLanguages' => apply_filters( 'wpml_active_languages', null )
    			];
    
    			if ( apply_filters( 'aioseo_sitemap_localization_disable', '__return_false' ) ) {
    				return;
    			}
    
    
  • /app/Common/Traits/Helpers/ThirdParty.php line 597
    			return $homePages;
    		}
    
    		if ( empty( $homePages ) ) {
    			$languages  = apply_filters( 'wpml_active_languages', [] );
    			$homePageId = (int) get_option( 'page_on_front' );
    			foreach ( $languages as $language ) {
    				$homePages[ $language['code'] ] = [
    					'id'  => apply_filters( 'wpml_object_id', $homePageId, 'page', false, $language['code'] ),
    					'url' => $sitepress->language_url( $language['code'] )
    				];