Yoast\WP\SEO\Actions\Importing\Aioseo

Aioseo_Posts_Importing_Action::get_limit()publicYoast 1.0

Returns the number of objects that will be imported in a single importing pass.

Метод класса: Aioseo_Posts_Importing_Action{}

Хуки из метода

Возвращает

int. The limit.

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

$Aioseo_Posts_Importing_Action = new Aioseo_Posts_Importing_Action();
$Aioseo_Posts_Importing_Action->get_limit();

Код Aioseo_Posts_Importing_Action::get_limit() Yoast 24.0

public function get_limit() {
	/**
	 * Filter 'wpseo_aioseo_post_indexation_limit' - Allow filtering the number of posts indexed during each indexing pass.
	 *
	 * @param int $max_posts The maximum number of posts indexed.
	 */
	$limit = \apply_filters( 'wpseo_aioseo_post_indexation_limit', 25 );

	if ( ! \is_int( $limit ) || $limit < 1 ) {
		$limit = 25;
	}

	return $limit;
}