# wordpress-seo/27.5/src/schema-aggregator/infrastructure/schema-aggregator-conditional.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/27.5/code/src/schema-aggregator/infrastructure/schema-aggregator-conditional.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/27.5/raw/src/schema-aggregator/infrastructure/schema-aggregator-conditional.php
- Modified: 2026-02-17T12:17: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/27.5/code/src/schema-aggregator/infrastructure/schema-aggregator-conditional.php#L10-L20`.

```php
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Schema_Aggregator\Infrastructure;

use Yoast\WP\SEO\Conditionals\Conditional;
use Yoast\WP\SEO\Helpers\Options_Helper;

/**
 * Conditional for the Schema aggregator feature.
 */
class Schema_Aggregator_Conditional implements Conditional {

	/**
	 * The options helper.
	 *
	 * @var Options_Helper
	 */
	private $options;

	/**
	 * The constructor.
	 *
	 * @param Options_Helper $options The options helper.
	 */
	public function __construct( Options_Helper $options ) {
		$this->options = $options;
	}

	/**
	 * Returns `true` when the Schema aggregator feature is enabled.
	 *
	 * @return bool `true` when the Schema aggregator feature is enabled.
	 */
	public function is_met(): bool {
		return $this->options->get( 'enable_schema_aggregation_endpoint' ) === true;
	}
}

```
