wpml_default_language

wpml_default_language

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

See hook in core

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

apply_filters('wpml_default_language') is found 1 times:

  • /app/Common/Sitemap/Localization.php line 32
    	 */
    	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 );
    		}