WordPress at a glance
function is not described


BaseLocationCountryRuleProcessor::process() public WC 1.0

Performs a comparison operation against the base location - country.

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

No Hooks.


true|false. The result of the operation.


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

Code of BaseLocationCountryRuleProcessor::process() WC 5.3.0

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

	return ComparisonOperation::compare(