WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

Onboarding::trigger_profile_completed_action() public WC 1.0

Trigger the woocommerce_onboarding_profile_completed action

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

Return

null. Nothing.

Usage

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

Code of Onboarding::trigger_profile_completed_action() WC 5.2.2

<?php
public function trigger_profile_completed_action( $old_value, $value ) {
	if ( isset( $old_value['completed'] ) && $old_value['completed'] ) {
		return;
	}

	if ( ! isset( $value['completed'] ) || ! $value['completed'] ) {
		return;
	}

	/**
	 * Action hook fired when the onboarding profile (or onboarding wizard,
	 * or profiler) is completed.
	 *
	 * @since 1.5.0
	 */
	do_action( 'woocommerce_onboarding_profile_completed' );
}