WordPress at a glance
function is not described


NoteStatusRuleProcessor::process() public WC 1.0

Compare against the status of another note.

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

No Hooks.


true|false. The result of the operation.


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

Code of NoteStatusRuleProcessor::process() WC 5.3.0

public function process( $rule, $stored_state ) {
	$status = Notes::get_note_status( $rule->note_name );
	if ( ! $status ) {
		return false;

	return ComparisonOperation::compare(