WPSEO_Meta_Columns::parse_column_score_readability
Parsing the readability score column.
Метод класса: WPSEO_Meta_Columns{}
Хуков нет.
Возвращает
string. 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() WPSEO Meta Columns::parse column score readability Yoast 28.5
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 );
}
}