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

apply_filters('wpml_active_languages') is found 2 times:

  • /app/Common/Sitemap/Localization.php line 33
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    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
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
        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'] )
            ];