WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Admin\RemoteInboxNotifications

WCAdminActiveForRuleProcessor::process() public WC 1.0

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

{} Это метод класса: WCAdminActiveForRuleProcessor{}

Хуков нет.

Возвращает

true/false. The result of the operation.

Использование

$WCAdminActiveForRuleProcessor = new WCAdminActiveForRuleProcessor();
$WCAdminActiveForRuleProcessor->process( $rule, $stored_state );
$rule(объект) (обязательный)
The rule being processed.
$stored_state(объект) (обязательный)
Stored state.

Код WCAdminActiveForRuleProcessor::process() WC 4.7.1

<?php
public function process( $rule, $stored_state ) {
	$active_for_seconds = $this->wcadmin_active_for_provider->get_wcadmin_active_for_in_seconds();
	$rule_seconds       = $rule->days * DAY_IN_SECONDS;

	return ComparisonOperation::compare(
		$active_for_seconds,
		$rule_seconds,
		$rule->operation
	);
}