WPSEO_Taxonomy_Columns::get_score_readability_value()privateYoast 1.0

Parses the value for the readability score column.

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

Хуков нет.

Возвращает

Строку. The HTML for the readability score indicator.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_score_readability_value( $term_id );
$term_id(int) (обязательный)
ID of the requested term.

Код WPSEO_Taxonomy_Columns::get_score_readability_value() Yoast 22.4

private function get_score_readability_value( $term_id ) {
	$score = (int) WPSEO_Taxonomy_Meta::get_term_meta( $term_id, $this->taxonomy, 'content_score' );

	return $this->score_icon_helper->for_readability( $score );
}