Yoast\WP\SEO\Integrations\Admin
Link_Count_Columns_Integration::register_init_hooks() public Yoast 1.0
Register hooks that need to be registered after init due to all post types not yet being registered.
{} Это метод класса: Link_Count_Columns_Integration{}
Хуки из метода
Возвращает
Null. Ничего.
Использование
$Link_Count_Columns_Integration = new Link_Count_Columns_Integration(); $Link_Count_Columns_Integration->register_init_hooks();
Код Link_Count_Columns_Integration::register_init_hooks() Link Count Columns Integration::register init hooks Yoast 15.6.2
public function register_init_hooks() {
$public_post_types = \apply_filters( 'wpseo_link_count_post_types', $this->post_type_helper->get_accessible_post_types() );
if ( ! \is_array( $public_post_types ) || empty( $public_post_types ) ) {
return;
}
foreach ( $public_post_types as $post_type ) {
\add_filter( 'manage_' . $post_type . '_posts_columns', [ $this, 'add_post_columns' ] );
\add_action( 'manage_' . $post_type . '_posts_custom_column', [ $this, 'column_content' ], 10, 2 );
\add_filter( 'manage_edit-' . $post_type . '_sortable_columns', [ $this, 'column_sort' ] );
}
}