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