WPSEO_Keyword_Synonyms_Modal::get_translations()publicYoast 1.0

Устарела с версии 15.5. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Returns the translations for the Keyword Synonyms modal.

These strings are not escaped because they're meant to be used with React which already takes care of that. If used in PHP, they should be escaped.

Метод класса: WPSEO_Keyword_Synonyms_Modal{}

Хуков нет.

Возвращает

Массив. Translated text strings for the Keyword Synonyms modal.

Использование

$WPSEO_Keyword_Synonyms_Modal = new WPSEO_Keyword_Synonyms_Modal();
$WPSEO_Keyword_Synonyms_Modal->get_translations();

Список изменений

Устарела с 15.5

Код WPSEO_Keyword_Synonyms_Modal::get_translations() Yoast 19.11

public function get_translations() {
	_deprecated_function( __METHOD__, 'WPSEO 15.5' );

	return [
		'title'                    => __( 'Would you like to add keyphrase synonyms?', 'wordpress-seo' ),
		'intro'                    => sprintf(
			/* translators: %s expands to a 'Yoast SEO Premium' text linked to the yoast.com website. */
			__( 'Great news: you can, with %s!', 'wordpress-seo' ),
			'{{link}}Yoast SEO Premium{{/link}}'
		),
		'link'                     => WPSEO_Shortlinker::get( 'https://yoa.st/pe-premium-page' ),
		'other'                    => sprintf(
			/* translators: %s expands to 'Yoast SEO Premium'. */
			__( 'Other benefits of %s for you:', 'wordpress-seo' ),
			'Yoast SEO Premium'
		),
		'buylink'                  => WPSEO_Shortlinker::get( 'https://yoa.st/keyword-synonyms-popup' ),
		'buy'                      => sprintf(
			/* translators: %s expands to 'Yoast SEO Premium'. */
			__( 'Get %s', 'wordpress-seo' ),
			'Yoast SEO Premium'
		),
		'small'                    => __( '1 year free support and updates included!', 'wordpress-seo' ),
		'a11yNotice.opensInNewTab' => __( '(Opens in a new browser tab)', 'wordpress-seo' ),
	];
}