WPSEO_Taxonomy_Columns::__construct()publicYoast 1.0

WPSEO_Taxonomy_Columns constructor.

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

Хуков нет.

Возвращает

null. Ничего.

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

$WPSEO_Taxonomy_Columns = new WPSEO_Taxonomy_Columns();
$WPSEO_Taxonomy_Columns->__construct();

Код WPSEO_Taxonomy_Columns::__construct() Yoast 19.11

public function __construct() {

	$this->taxonomy = $this->get_taxonomy();

	if ( ! empty( $this->taxonomy ) ) {
		add_filter( 'manage_edit-' . $this->taxonomy . '_columns', [ $this, 'add_columns' ] );
		add_filter( 'manage_' . $this->taxonomy . '_custom_column', [ $this, 'parse_column' ], 10, 3 );
	}

	$this->analysis_seo         = new WPSEO_Metabox_Analysis_SEO();
	$this->analysis_readability = new WPSEO_Metabox_Analysis_Readability();
	$this->indexable_repository = YoastSEO()->classes->get( Indexable_Repository::class );
	$this->score_icon_helper    = YoastSEO()->helpers->score_icon;
}