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

apply_filters('wpml_translate_single_string') is found 2 times:

  • /app/Common/Meta/Description.php line 50
     
    		$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 65
     
    		$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' ) );
    	}