WordPress at a glance
function is not described


WCAdminActiveForRuleProcessor::process() public WC 1.0

Performs a comparison operation against the amount of time wc-admin has been active for in days.

{} It's a method of the class: WCAdminActiveForRuleProcessor{}

No Hooks.


true|false. The result of the operation.


$WCAdminActiveForRuleProcessor = new WCAdminActiveForRuleProcessor();
$WCAdminActiveForRuleProcessor->process( $rule, $stored_state );
$rule(object) (required)
The rule being processed.
$stored_state(object) (required)
Stored state.

Code of WCAdminActiveForRuleProcessor::process() WC 5.2.2

public function process( $rule, $stored_state ) {
	$active_for_seconds = $this->wcadmin_active_for_provider->get_wcadmin_active_for_in_seconds();
	$rule_seconds       = $rule->days * DAY_IN_SECONDS;

	return ComparisonOperation::compare(