Automattic\WooCommerce\Admin\RemoteInboxNotifications

PublishAfterTimeRuleProcessor::validate()publicWC 1.0

Validates the rule.

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

No Hooks.

Return

true|false. Pass/fail.

Usage

$PublishAfterTimeRuleProcessor = new PublishAfterTimeRuleProcessor();
$PublishAfterTimeRuleProcessor->validate( $rule );
$rule(object) (required)
The rule to validate.

Code of PublishAfterTimeRuleProcessor::validate() WC 7.1.0

public function validate( $rule ) {
	if ( ! isset( $rule->publish_after ) ) {
		return false;
	}

	return true;
}