WPSEO_Taxonomy_Columns::parse_column()
Parses the column.
Метод класса: WPSEO_Taxonomy_Columns{}
Хуков нет.
Возвращает
Строку
.
Использование
$WPSEO_Taxonomy_Columns = new WPSEO_Taxonomy_Columns(); $WPSEO_Taxonomy_Columns->parse_column( $content, $column_name, $term_id );
- $content(строка) (обязательный)
- The current content of the column.
- $column_name(строка) (обязательный)
- The name of the column.
- $term_id(int) (обязательный)
- ID of requested taxonomy.
Код WPSEO_Taxonomy_Columns::parse_column() WPSEO Taxonomy Columns::parse column Yoast 21.6
public function parse_column( $content, $column_name, $term_id ) { switch ( $column_name ) { case 'wpseo-score': return $this->get_score_value( $term_id ); case 'wpseo-score-readability': return $this->get_score_readability_value( $term_id ); } return $content; }