WooCommerce Code Reference

WCAdminActiveForRuleProcessor
in package
implements RuleProcessorInterface

Rule processor for publishing if wc-admin has been active for at least the given number of seconds.

Interfaces, Classes and Traits

RuleProcessorInterface
Rule processor interface

Table of Contents

__construct()  : mixed
Constructor
process()  : bool
Performs a comparison operation against the amount of time wc-admin has been active for in days.
validate()  : bool
Validates the rule.

Methods

process()

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

public process(object $rule, object $stored_state) : bool
Parameters
$rule : object

The rule being processed.

$stored_state : object

Stored state.

Return values
boolThe result of the operation.