wpseo_posts_where хук-фильтрYoast 1.0

Filter WHERE query part for the post type.

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

add_filter( 'wpseo_posts_where', 'wp_kama_wpseo_posts_where_filter', 10, 2 );

/**
 * Function for `wpseo_posts_where` filter-hook.
 * 
 * @param string $where     SQL part.
 * @param string $post_type Post type name.
 *
 * @return string
 */
function wp_kama_wpseo_posts_where_filter( $where, $post_type ){

	// filter...
	return $where;
}
$where(строка)
SQL part.
По умолчанию: false
$post_type(строка)
Post type name.

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

WPSEO_Post_Type_Sitemap_Provider::get_posts()
wpseo_posts_where
yoast/inc/sitemaps/class-post-type-sitemap-provider.php 531
'where' => apply_filters( 'wpseo_posts_where', false, $post_type ),

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

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