aioseo_sitemap_localization_disable

aioseo_sitemap_localization_disable

Hook Type: filter

See hook in core

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

apply_filters('aioseo_sitemap_localization_disable') is found 1 times:

  • /app/Common/Sitemap/Localization.php line 36
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
            'defaultLanguage' => apply_filters( 'wpml_default_language', null ),
            'activeLanguages' => apply_filters( 'wpml_active_languages', null )
        ];
     
        if ( apply_filters( 'aioseo_sitemap_localization_disable', '__return_false' ) ) {
            return;
        }
     
        add_filter( 'aioseo_sitemap_term', [ $this, 'localizeEntry' ], 10, 4 );
        add_filter( 'aioseo_sitemap_post', [ $this, 'localizeEntry' ], 10, 4 );
    }