wpseo_author_archive_post_types хук-фильтр . Yoast 1.0
Filters the array of post types that are shown on an author's archive.
Использование
add_filter( 'wpseo_author_archive_post_types', 'filter_function_name_5529' ); function filter_function_name_5529( $args ){ // filter... return $args; }
- $args(массив)
- The post types that are shown on an author archive.
Где вызывается хук
wpseo_author_archive_post_types
yoast/src/helpers/author-archive-helper.php 23
return \apply_filters( 'wpseo_author_archive_post_types', [ 'post' ] );