# wordpress-seo/trunk/src/actions/indexing/indexation-action-interface.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version trunk. 35 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/trunk/code/src/actions/indexing/indexation-action-interface.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/trunk/raw/src/actions/indexing/indexation-action-interface.php
- Modified: 2021-07-29T10:57:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/trunk/code/src/actions/indexing/indexation-action-interface.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Actions\Indexing;

/**
 * Interface definition of reindexing action for indexables.
 */
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 indexing 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();
}

```
