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', '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.

Где вызывается хук

Author_Archive_Helper::get_author_archive_post_types()
wpseo_author_archive_post_types
yoast/src/helpers/author-archive-helper.php 52
return \apply_filters( 'wpseo_author_archive_post_types', [ 'post' ] );

Где используется хук в Yoast SEO

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