Automattic\WooCommerce\Admin\RemoteInboxNotifications

PublishBeforeTimeRuleProcessor::process()publicWC 1.0

Process the rule.

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

Хуков нет.

Возвращает

true|false. Whether the rule passes or not.

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

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

Код PublishBeforeTimeRuleProcessor::process() WC 6.4.1

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