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

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 $max_posts The maximum number of posts cleaned up.
 *
 * @return int
 */
function wp_kama_wpseo_aioseo_cleanup_limit_filter( $max_posts ){

	// filter...
	return $max_posts;
}
$max_posts(int)
The maximum number of posts cleaned up.

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

Aioseo_Cleanup_Action::get_limit()
wpseo_aioseo_cleanup_limit
yoast/src/actions/importing/aioseo/aioseo-cleanup-action.php 168
$limit = \apply_filters( 'wpseo_aioseo_cleanup_limit', 25 );

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

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