Automattic\WooCommerce\Admin\Features
Onboarding::add_actions() private WC 1.0
Add onboarding actions.
{} Это метод класса: Onboarding{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
// private - только в коде основоного (родительского) класса $result = $this->add_actions();
Код Onboarding::add_actions() Onboarding::add actions WC 5.2.2
private function add_actions() {
// Rest API hooks need to run before is_admin() checks.
add_action( 'woocommerce_theme_installed', array( $this, 'delete_themes_transient' ) );
add_action( 'after_switch_theme', array( $this, 'delete_themes_transient' ) );
add_action(
'update_option_' . self::PROFILE_DATA_OPTION,
array(
$this,
'trigger_profile_completed_action',
),
10,
2
);
// Always hook into Jetpack connection even if outside of admin.
add_action( 'jetpack_site_registered', array( $this, 'set_woocommerce_setup_jetpack_opted_in' ) );
if ( ! is_admin() ) {
return;
}
add_action( 'admin_init', array( $this, 'admin_redirects' ) );
add_action( 'current_screen', array( $this, 'finish_paypal_connect' ) );
add_action( 'current_screen', array( $this, 'finish_square_connect' ) );
add_action( 'current_screen', array( $this, 'add_help_tab' ), 60 );
add_action( 'current_screen', array( $this, 'reset_profiler' ) );
add_action( 'current_screen', array( $this, 'reset_task_list' ) );
add_action( 'current_screen', array( $this, 'reset_extended_task_list' ) );
add_action( 'current_screen', array( $this, 'redirect_wccom_install' ) );
add_action( 'current_screen', array( $this, 'redirect_old_onboarding' ) );
}