WPSEO_Expose_Shortlinks::get_shortlinks()privateYoast 1.0

Retrieves the shortlinks.

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

Хуков нет.

Возвращает

Массив. The shortlinks.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_shortlinks();

Код WPSEO_Expose_Shortlinks::get_shortlinks() Yoast 19.11

private function get_shortlinks() {
	if ( ! $this->is_term_edit() ) {
		return $this->shortlinks;
	}

	$shortlinks = $this->shortlinks;

	$shortlinks['shortlinks.upsell.metabox.focus_keyword_synonyms_link']     = 'https://yoa.st/textlink-synonyms-popup-metabox-term';
	$shortlinks['shortlinks.upsell.metabox.focus_keyword_synonyms_button']   = 'https://yoa.st/keyword-synonyms-popup-term';
	$shortlinks['shortlinks.upsell.metabox.focus_keyword_additional_link']   = 'https://yoa.st/textlink-keywords-popup-metabox-term';
	$shortlinks['shortlinks.upsell.metabox.focus_keyword_additional_button'] = 'https://yoa.st/add-keywords-popup-term';
	$shortlinks['shortlinks.upsell.metabox.additional_link']                 = 'https://yoa.st/textlink-keywords-metabox-term';
	$shortlinks['shortlinks.upsell.metabox.additional_button']               = 'https://yoa.st/add-keywords-metabox-term';
	$shortlinks['shortlinks.upsell.sidebar.morphology_upsell_metabox']       = 'https://yoa.st/morphology-upsell-metabox-term';
	$shortlinks['shortlinks.upsell.metabox.keyphrase_distribution']          = 'https://yoa.st/keyphrase-distribution-metabox-term';
	$shortlinks['shortlinks.upsell.metabox.word_complexity']                 = 'https://yoa.st/word-complexity-metabox-term';

	return $shortlinks;
}