# wp-crontrol/trunk/src/Context/FeatureContext.php

WP Crontrol, version trunk. 26 lines.

- Page: https://pluginprobe.com/plugins/wp-crontrol/trunk/code/src/Context/FeatureContext.php
- Raw: https://pluginprobe.com/plugins/wp-crontrol/trunk/raw/src/Context/FeatureContext.php
- Modified: 2025-12-17T11:59:58+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/wp-crontrol/trunk/code/src/Context/FeatureContext.php#L10-L20`.

```php
<?php
/**
 * Feature flag context for WP Crontrol.
 *
 * @package wp-crontrol
 */

namespace Crontrol\Context;

/**
 * Interface for checking feature flags.
 *
 * Provides methods to check if various cron event features are enabled.
 */
interface FeatureContext {
	/**
	 * Check whether PHP cron events are enabled globally on the site.
	 */
	public function php_crons_enabled(): bool;

	/**
	 * Check whether URL cron events are enabled globally on the site.
	 */
	public function url_crons_enabled(): bool;
}

```
