wpseo_analyzed_posts_threshold
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
- -
Где вызывается хук
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' );