Automattic\WooCommerce\Admin\RemoteInboxNotifications

RemoteInboxNotificationsEngine::update_profile_option()public staticWC 1.0

This is triggered when the profile option is updated and if the profiler is being completed, triggers a run of the engine.

Метод класса: RemoteInboxNotificationsEngine{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$result = RemoteInboxNotificationsEngine::update_profile_option( $old_value, $new_value );
$old_value(разное) (обязательный)
Old value.
$new_value(разное) (обязательный)
New value.

Код RemoteInboxNotificationsEngine::update_profile_option() WC 9.4.2

public static function update_profile_option( $old_value, $new_value ) {
	// Return early if we're not completing the profiler.
	if (
		( isset( $old_value['completed'] ) && $old_value['completed'] ) ||
		! isset( $new_value['completed'] ) ||
		! $new_value['completed']
	) {
		return;
	}

	self::run();
}