WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

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.

Return

null. Nothing.

Usage

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

Code of Onboarding::add_toggle_actions() WC 5.3.0

<?php
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' ) );
}