WordPress at a glance
function is not described


BaseLocationStateRuleProcessor::process() public WC 1.0

Performs a comparison operation against the base location - state.

{} It's a method of the class: BaseLocationStateRuleProcessor{}

No Hooks.


true|false. The result of the operation.


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

Code of BaseLocationStateRuleProcessor::process() WC 5.2.2

public function process( $rule, $stored_state ) {
	$base_location = wc_get_base_location();
	if ( ! $base_location ) {
		return false;

	return ComparisonOperation::compare(