wpseo_accessible_post_types хук-фильтр . Yoast 1.0
Filter: 'wpseo_accessible_post_types' - Allow changing the accessible post types.
Использование
add_filter( 'wpseo_accessible_post_types', 'filter_function_name_4022' ); function filter_function_name_4022( $post_types ){ // filter... return $post_types; }
- $post_types(массив)
- The public post types.
Где вызывается хук
wpseo_accessible_post_types
yoast/src/helpers/post-type-helper.php 72
$post_types = \apply_filters( 'wpseo_accessible_post_types', $post_types );
Где используется хук в ядре Yoast SEO
yoast/admin/class-admin.php 51
add_filter( 'wpseo_accessible_post_types', [ 'WPSEO_Post_Type', 'filter_attachment_post_type' ] );