WPSEO_Meta_Columns::parse_column_score()
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() WPSEO Meta Columns::parse column score Yoast 24.1
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' ) ); } }