Automattic\WooCommerce\Internal\Admin\Onboarding
OnboardingProfile::trigger_complete()
Trigger the woocommerce_onboarding_profile_completed action
Метод класса: OnboardingProfile{}
Хуки из метода
Возвращает
null
. Ничего (null).
Использование
$result = OnboardingProfile::trigger_complete( $old_value, $value );
- $old_value(массив) (обязательный)
- Previous value.
- $value(массив) (обязательный)
- Current value.
Код OnboardingProfile::trigger_complete() OnboardingProfile::trigger complete WC 9.4.2
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' ); }