WPSEO_Meta_Columns::parse_column_score()privateYoast 1.0

Parses the score column.

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

Хуков нет.

Возвращает

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

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

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

Код WPSEO_Meta_Columns::parse_column_score() Yoast 22.4

private function parse_column_score( $post_id ) {
	$meta = $this->get_meta( $post_id );

	if ( $meta ) {
		return $this->score_icon_helper->for_seo( $meta->indexable, '', __( 'Post is set to noindex.', 'wordpress-seo' ) );
	}
}