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.7.4.2

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 )
    			];
    
    			add_filter( 'aioseo_sitemap_term', [ $this, 'localizeEntry' ], 10, 4 );
    			add_filter( 'aioseo_sitemap_post', [ $this, 'localizeEntry' ], 10, 4 );
    		}
    	}
    
  • /app/Common/Traits/Helpers/ThirdParty.php line 543
    			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'] )
    				];