Yoast\WP\SEO\Helpers

Indexables_Page_Helper::get_indexables_list_size()publicYoast 1.0

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

Retrieves the size of the Indexables lists. This size is the amount of indexables that are displayed in each list.

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

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

Возвращает

int. The size of the Indexables lists.

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

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

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

Устарела с 20.4

Код Indexables_Page_Helper::get_indexables_list_size() Yoast 22.4

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

	/**
	 * Filter 'wpseo_indexables_list_size' - Allow filtering the size of the Indexables lists.
	 *
	 * @param int $list_size The size of the Indexables lists.
	 */
	return \apply_filters_deprecated( 'wpseo_indexables_list_size', [ self::LIST_SIZE ], 'Yoast SEO 20.4' );
}