Automattic\WooCommerce\Admin\RemoteInboxNotifications

PublishAfterTimeRuleProcessor::process()publicWC 1.0

Process the rule.

{} Это метод класса: PublishAfterTimeRuleProcessor{}

Хуков нет.

Возвращает

true|false. Whether the rule passes or not.

Использование

$PublishAfterTimeRuleProcessor = new PublishAfterTimeRuleProcessor();
$PublishAfterTimeRuleProcessor->process( $rule, $stored_state );
$rule(объект) (обязательный)
The specific rule being processed by this rule processor.
$stored_state(объект) (обязательный)
Stored state.

Код PublishAfterTimeRuleProcessor::process() WC 6.4.1

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