# wordpress-seo/28.4/src/conditionals/should-index-indexables-conditional.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.4/code/src/conditionals/should-index-indexables-conditional.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.4/raw/src/conditionals/should-index-indexables-conditional.php
- Modified: 2026-07-21T12:19:50+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/28.4/code/src/conditionals/should-index-indexables-conditional.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Conditionals;

use Yoast\WP\SEO\Helpers\Indexable_Helper;

/**
 * Conditional that is only met when the site's indexables are being built.
 */
class Should_Index_Indexables_Conditional implements Conditional {

	/**
	 * The indexable helper.
	 *
	 * @var Indexable_Helper
	 */
	protected $indexable_helper;

	/**
	 * Should_Index_Indexables_Conditional constructor.
	 *
	 * @param Indexable_Helper $indexable_helper The indexable helper.
	 */
	public function __construct( Indexable_Helper $indexable_helper ) {
		$this->indexable_helper = $indexable_helper;
	}

	/**
	 * Returns `true` when the site's indexables are being built.
	 *
	 * @return bool `true` when the site's indexables are being built.
	 */
	public function is_met() {
		return $this->indexable_helper->should_index_indexables();
	}
}

```
