Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingSync::send_profile_data_on_update()publicWC 1.0

Send profiler data on profiler change to completion.

Method of the class: OnboardingSync{}

No Hooks.

Return

null. Nothing.

Usage

$OnboardingSync = new OnboardingSync();
$OnboardingSync->send_profile_data_on_update( $old_value, $value );
$old_value(array) (required)
Previous value.
$value(array) (required)
Current value.

OnboardingSync::send_profile_data_on_update() code WC 7.1.1

public function send_profile_data_on_update( $old_value, $value ) {
	if ( ! isset( $value['completed'] ) || ! $value['completed'] ) {
		return;
	}

	$this->send_profile_data();
}