WPSEO_Term_Metabox_Formatter::get_values()
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() WPSEO Term Metabox Formatter::get values Yoast 24.0
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 = [ 'taxonomy' => $this->term->taxonomy, 'semrushIntegrationActive' => 0, 'wincherIntegrationActive' => 0, 'isInsightsEnabled' => $this->is_insights_enabled(), ]; $repo = YoastSEO()->classes->get( Term_Seo_Information_Repository::class ); $repo->set_term( $this->term ); $values = ( $repo->get_seo_data() + $values ); } return $values; }