Yoast\WP\SEO\Helpers

Indexables_Page_Helper::get_minimum_posts_threshold()publicYoast 1.0

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();

Код Indexables_Page_Helper::get_minimum_posts_threshold() Yoast 19.11

public function get_minimum_posts_threshold() {
	/**
	 * 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.
	 *
	 * @api int The minimum threshold for the amount of posts in the site, in order for Indexable lists to be relevant.
	 */
	return \apply_filters( 'wpseo_posts_threshold', self::POSTS_THRESHOLD );
}