Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingSync::send_profile_data_on_connect()publicWC 1.0

Send profiler data after a site is connected.

Method of the class: OnboardingSync{}

No Hooks.

Return

null. Nothing.

Usage

$OnboardingSync = new OnboardingSync();
$OnboardingSync->send_profile_data_on_connect();

OnboardingSync::send_profile_data_on_connect() code WC 7.1.0

public function send_profile_data_on_connect() {
	$profile = get_option( OnboardingProfile::DATA_OPTION, array() );
	if ( ! isset( $profile['completed'] ) || ! $profile['completed'] ) {
		return;
	}

	$this->send_profile_data();
}