wpseo_aioseo_post_indexation_limit
Filter wpseo_aioseo_post_indexation_limit Allow filtering the number of posts indexed during each indexing pass.
Использование
add_filter( 'wpseo_aioseo_post_indexation_limit', 'wp_kama_wpseo_aioseo_post_indexation_limit_filter' ); /** * Function for `wpseo_aioseo_post_indexation_limit` filter-hook. * * @param int $25 The maximum number of posts indexed. * * @return int */ function wp_kama_wpseo_aioseo_post_indexation_limit_filter( $25 ){ // filter... return $25; }
- $25(int)
- The maximum number of posts indexed.
Где вызывается хук
wpseo_aioseo_post_indexation_limit
yoast/src/actions/importing/aioseo/aioseo-posts-importing-action.php 384
$limit = \apply_filters( 'wpseo_aioseo_post_indexation_limit', 25 );