WPSEO_Term_Metabox_Formatter::get_values()publicYoast 1.0

Returns the translated values.

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

Хуков нет.

Возвращает

Массив.

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

$WPSEO_Term_Metabox_Formatter = new WPSEO_Term_Metabox_Formatter();
$WPSEO_Term_Metabox_Formatter->get_values();

Код WPSEO_Term_Metabox_Formatter::get_values() Yoast 22.4

public function get_values() {
	$values = [];

	// Todo: a column needs to be added on the termpages to add a filter for the keyword, so this can be used in the focus keyphrase doubles.
	if ( is_object( $this->term ) && property_exists( $this->term, 'taxonomy' ) ) {
		$values = [
			'search_url'                  => $this->search_url(),
			'post_edit_url'               => $this->edit_url(),
			'base_url'                    => $this->base_url_for_js(),
			'taxonomy'                    => $this->term->taxonomy,
			'keyword_usage'               => $this->get_focus_keyword_usage(),
			'title_template'              => $this->get_title_template(),
			'title_template_no_fallback'  => $this->get_title_template( false ),
			'metadesc_template'           => $this->get_metadesc_template(),
			'first_content_image'         => $this->get_image_url(),
			'semrushIntegrationActive'    => 0,
			'social_title_template'       => $this->get_social_title_template(),
			'social_description_template' => $this->get_social_description_template(),
			'social_image_template'       => $this->get_social_image_template(),
			'wincherIntegrationActive'    => 0,
			'isInsightsEnabled'           => $this->is_insights_enabled(),
		];
	}

	return $values;
}