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

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

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

add_filter( 'wpseo_analyzed_posts_threshold', 'wp_kama_wpseo_analyzed_posts_threshold_filter', 10, 2 );

/**
 * Function for `wpseo_analyzed_posts_threshold` filter-hook.
 * 
 * @param int $analysed_post_threshold The minimum threshold for the amount of analyzed posts in the site, in order for Indexable lists to be relevant.
 * @param     $string                  
 *
 * @return int
 */
function wp_kama_wpseo_analyzed_posts_threshold_filter( $analysed_post_threshold, $string ){

	// filter...
	return $analysed_post_threshold;
}
$analysed_post_threshold(int)
The minimum threshold for the amount of analyzed posts in the site, in order for Indexable lists to be relevant.
$string
-

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

Indexables_Page_Helper::get_minimum_analyzed_posts_threshold()
wpseo_analyzed_posts_threshold
yoast/src/deprecated/src/helpers/indexables-page-helper.php 140
return \apply_filters_deprecated( 'wpseo_analyzed_posts_threshold', [ self::ANALYSED_POSTS_THRESHOLD ], 'Yoast SEO 20.4' );

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

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