Automattic\WooCommerce\Internal\Admin\Onboarding
OnboardingProfile::trigger_complete
Trigger the woocommerce_onboarding_profile_completed action
Method of the class: OnboardingProfile{}
Hooks from the method
Returns
null. Nothing (null).
Usage
$result = OnboardingProfile::trigger_complete( $old_value, $value );
- $old_value(array) (required)
- Previous value.
- $value(array) (required)
- Current value.
OnboardingProfile::trigger_complete() OnboardingProfile::trigger complete code WC 10.7.0
public static function trigger_complete( $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' );
}