wpseo_aioseo_(type)_indexation_limit
Filter 'wpseo_aioseo_<identifier>_indexation_limit' - Allow filtering the number of settings imported during each importing pass.
Использование
add_filter( 'wpseo_aioseo_(type)_indexation_limit', 'wp_kama_wpseo_aioseo_type_indexation_limit_filter' ); /** * Function for `wpseo_aioseo_(type)_indexation_limit` filter-hook. * * @param int $max_posts The maximum number of posts indexed. * * @return int */ function wp_kama_wpseo_aioseo_type_indexation_limit_filter( $max_posts ){ // filter... return $max_posts; }
- $max_posts(int)
- The maximum number of posts indexed.
Где вызывается хук
wpseo_aioseo_(type)_indexation_limit
yoast/src/actions/importing/aioseo/abstract-aioseo-settings-importing-action.php 264
$limit = \apply_filters( 'wpseo_aioseo_' . $this->get_type() . '_indexation_limit', 25 );