WPSEO_Meta_Columns::parse_column_score_readability()privateYoast 1.0

Parsing the readability score column.

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

Хуков нет.

Возвращает

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

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

// private - только в коде основоного (родительского) класса
$result = $this->parse_column_score_readability( $post_id );
$post_id(int) (обязательный)
The ID of the post for which to show the readability score.

Код WPSEO_Meta_Columns::parse_column_score_readability() Yoast 22.4

private function parse_column_score_readability( $post_id ) {
	$meta = $this->get_meta( $post_id );
	if ( $meta ) {
		return $this->score_icon_helper->for_readability( $meta->indexable->readability_score );
	}
}