HEX
Server: Apache
System: Linux cpanelx.inxs.ro 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: crowdandsafety (1041)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/cwd/wp-content/plugins/wp-crontrol/src/Context/WordPressFeatureContext.php
<?php
/**
 * WordPress feature flag context implementation.
 *
 * @package wp-crontrol
 */

namespace Crontrol\Context;

use function Crontrol\php_cron_events_enabled;
use function Crontrol\url_cron_events_enabled;

/**
 * FeatureContext implementation that checks WordPress constants and options.
 *
 * This is the production implementation that reads from the WordPress environment.
 */
class WordPressFeatureContext implements FeatureContext {
	#[\Override]
	public function php_crons_enabled(): bool {
		return php_cron_events_enabled();
	}

	#[\Override]
	public function url_crons_enabled(): bool {
		return url_cron_events_enabled();
	}
}