WordPress at a glance
function is not described


Onboarding::add_toggle_actions() private WC 1.0

Adds the ability to toggle the new onboarding experience on or off.

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

No Hooks.


null. Nothing.


// private - for code of main (parent) class only
$result = $this->add_toggle_actions();

Code of Onboarding::add_toggle_actions() WC 5.3.0

private function add_toggle_actions() {
	add_action( 'woocommerce_updated', array( $this, 'maybe_mark_complete' ) );
	add_action( 'update_option_' . self::PROFILE_DATA_OPTION, array( $this, 'send_profile_data_on_update' ), 10, 2 );
	add_action( 'woocommerce_helper_connected', array( $this, 'send_profile_data_on_connect' ) );