wpml_translate_single_string

wpml_translate_single_string

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_translate_single_string') is found 2 times:

  • /app/Common/Meta/Description.php line 52
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
        $description = aioseo()->options->searchAppearance->global->metaDescription;
        if ( aioseo()->helpers->isWpmlActive() ) {
            // Allow WPML to translate the title if the homepage is not static.
            $description = apply_filters( 'wpml_translate_single_string', $description, 'admin_texts_aioseo_options_localized', '[aioseo_options_localized]searchAppearance_global_metaDescription' );
        }
     
        $description = $this->helpers->prepare( $description );
     
        return $description ? $description : aioseo()->helpers->decodeHtmlEntities( get_bloginfo( 'description' ) );
    }
  • /app/Common/Meta/Title.php line 67
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
        $title = aioseo()->options->searchAppearance->global->siteTitle;
        if ( aioseo()->helpers->isWpmlActive() ) {
            // Allow WPML to translate the title if the homepage is not static.
            $title = apply_filters( 'wpml_translate_single_string', $title, 'admin_texts_aioseo_options_localized', '[aioseo_options_localized]searchAppearance_global_siteTitle' );
        }
     
        $title = $this->helpers->prepare( $title );
     
        return $title ? $title : aioseo()->helpers->decodeHtmlEntities( get_bloginfo( 'name' ) );
    }