WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
класс не описан

Yoast\WP\SEO\Actions\Indexation

Indexation_Action_Interface{} Yoast 1.0

Interface definition of reindexation action for indexables.

Хуков нет.

Возвращает

Null. Ничего.

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

$Indexation_Action_Interface = new Indexation_Action_Interface();
// use class methods

Методы

  1. get_limit()
  2. get_total_unindexed()
  3. index()

Код Indexation_Action_Interface{} Yoast 15.1.1

<?php
interface Indexation_Action_Interface {

	/**
	 * Returns the total number of unindexed objects.
	 *
	 * @return int The total number of unindexed objects.
	 */
	public function get_total_unindexed();

	/**
	 * Indexes a number of objects.
	 *
	 * NOTE: ALWAYS use limits, this method is intended to be called multiple times over several requests.
	 *
	 * For indexation that requires JavaScript simply return the objects that should be indexed.
	 *
	 * @return array The reindexed objects.
	 */
	public function index();

	/**
	 * Returns the number of objects that will be indexed in a single indexing pass.
	 *
	 * @return int The limit.
	 */
	public function get_limit();
}