Yoast\WP\SEO\Helpers

Indexables_Page_Helper::get_minimum_analyzed_posts_threshold()publicYoast 1.0

Устарела с версии 20.4. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Retrieves the minimum threshold for the amount of analyzed posts in the site, in order for lists to be relevant.

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

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

Возвращает

int. The size of the Indexables lists.

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

$Indexables_Page_Helper = new Indexables_Page_Helper();
$Indexables_Page_Helper->get_minimum_analyzed_posts_threshold();

Список изменений

Устарела с 20.4

Код Indexables_Page_Helper::get_minimum_analyzed_posts_threshold() Yoast 22.3

public function get_minimum_analyzed_posts_threshold() {
	\_deprecated_function( __METHOD__, 'Yoast SEO 20.4' );

	/**
	 * Filter 'wpseo_analyzed_posts_threshold' - Allow filtering the minimum threshold for the amount of analyzed posts in the site, in order for Indexable lists to be relevant.
	 *
	 * @param int $analysed_post_threshold The minimum threshold for the amount of analyzed posts in the site, in order for Indexable lists to be relevant.
	 */
	return \apply_filters_deprecated( 'wpseo_analyzed_posts_threshold', [ self::ANALYSED_POSTS_THRESHOLD ], 'Yoast SEO 20.4' );
}