wpseo_typecount_join хук-фильтр . Yoast 1.0
Filter JOIN query part for type count of post type.
Использование
add_filter( 'wpseo_typecount_join', 'filter_function_name_7860', 10, 2 ); function filter_function_name_7860( $join, $post_type ){ // filter... return $join; }
- $join(строка)
- SQL part.
По умолчанию: empty string - $post_type(строка)
- Post type name.
Где вызывается хук
wpseo_typecount_join
yoast/inc/sitemaps/class-post-type-sitemap-provider.php 335
$join_filter = apply_filters( 'wpseo_typecount_join', '', $post_type );