Automattic\WooCommerce\Admin\RemoteInboxNotifications

PublishAfterTimeRuleProcessor::process()publicWC 1.0

Process the rule.

Method of the class: PublishAfterTimeRuleProcessor{}

No Hooks.

Return

true|false. Whether the rule passes or not.

Usage

$PublishAfterTimeRuleProcessor = new PublishAfterTimeRuleProcessor();
$PublishAfterTimeRuleProcessor->process( $rule, $stored_state );
$rule(object) (required)
The specific rule being processed by this rule processor.
$stored_state(object) (required)
Stored state.

PublishAfterTimeRuleProcessor::process() code WC 7.1.0

public function process( $rule, $stored_state ) {
	return $this->date_time_provider->get_now() >= new \DateTime( $rule->publish_after );
}