Yoast\WP\SEO\Helpers
Indexables_Page_Helper::get_minimum_posts_threshold()
Устарела с версии 20.4. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Retrieves the minimum threshold for the amount of 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_posts_threshold();
Список изменений
Устарела с | 20.4 |
Код Indexables_Page_Helper::get_minimum_posts_threshold() Indexables Page Helper::get minimum posts threshold Yoast 22.4
public function get_minimum_posts_threshold() { \_deprecated_function( __METHOD__, 'Yoast SEO 20.4' ); /** * Filter 'wpseo_posts_threshold' - Allow filtering the minimum threshold for the amount of posts in the site, in order for Indexable lists to be relevant. * * @param int $post_threshold The minimum threshold for the amount of posts in the site, in order for Indexable lists to be relevant. */ return \apply_filters_deprecated( 'wpseo_posts_threshold', [ self::POSTS_THRESHOLD ], 'Yoast SEO 20.4' ); }