WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\RemoteInboxNotifications

OnboardingProfileRuleProcessor::process() public WC 1.0

Performs a comparison operation against a value in the onboarding profile.

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

No Hooks.

Return

true|false. The result of the operation.

Usage

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

Code of OnboardingProfileRuleProcessor::process() WC 5.3.0

<?php
public function process( $rule, $stored_state ) {
	$onboarding_profile = get_option( 'woocommerce_onboarding_profile' );

	if ( empty( $onboarding_profile ) ) {
		return false;
	}

	if ( ! isset( $onboarding_profile[ $rule->index ] ) ) {
		return false;
	}

	return ComparisonOperation::compare(
		$onboarding_profile[ $rule->index ],
		$rule->value,
		$rule->operation
	);
}