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

Filter wpseo_posts_threshold Allow filtering the minimum threshold for the amount of posts in the site, in order for Indexable lists to be relevant.

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

add_filter( 'wpseo_posts_threshold', 'wp_kama_wpseo_posts_threshold_filter' );

/**
 * Function for `wpseo_posts_threshold` filter-hook.
 * 
 * @param int $self::POSTS_THRESHOLD The minimum threshold for the amount of posts in the site, in order for Indexable lists to be relevant.
 *
 * @return int
 */
function wp_kama_wpseo_posts_threshold_filter( $self::POSTS_THRESHOLD ){

	// filter...
	return $self::POSTS_THRESHOLD;
}
$self::POSTS_THRESHOLD(int)
The minimum threshold for the amount of posts in the site, in order for Indexable lists to be relevant.

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

Indexables_Page_Helper::get_minimum_posts_threshold()
wpseo_posts_threshold
yoast/src/helpers/indexables-page-helper.php 93
return \apply_filters( 'wpseo_posts_threshold', self::POSTS_THRESHOLD );

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

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