Automattic\WooCommerce\Admin\RemoteInboxNotifications

RemoteInboxNotificationsEngine::run()public staticWC 1.0

Go through the specs and run them.

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

No Hooks.

Return

null. Nothing.

Usage

$result = RemoteInboxNotificationsEngine::run();

Code of RemoteInboxNotificationsEngine::run() WC 6.6.1

public static function run() {
	$specs = DataSourcePoller::get_instance()->get_specs_from_data_sources();

	if ( false === $specs || 0 === count( $specs ) ) {
		return;
	}

	$stored_state = self::get_stored_state();

	foreach ( $specs as $spec ) {
		SpecRunner::run_spec( $spec, $stored_state );
	}
}