wpseo_author_archive_post_types
Filters the array of post types that are shown on an author's archive.
Использование
add_filter( 'wpseo_author_archive_post_types', 'wp_kama_wpseo_author_archive_post_types_filter' );
/**
* Function for `wpseo_author_archive_post_types` filter-hook.
*
* @param array $args The post types that are shown on an author archive.
*
* @return array
*/
function wp_kama_wpseo_author_archive_post_types_filter( $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 49
return \apply_filters( 'wpseo_author_archive_post_types', [ 'post' ] );