woocommerce_setup_wizard_steps

woocommerce_setup_wizard_steps

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_setup_wizard_steps') is found 1 times:

  • /includes/admin/class-wc-admin-setup-wizard.php line 282
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    if ( ! current_user_can( 'install_plugins' ) ) {
        unset( $default_steps['activate'] );
    }
     
    $this->steps = apply_filters( 'woocommerce_setup_wizard_steps', $default_steps );
    $this->step  = isset( $_GET['step'] ) ? sanitize_key( $_GET['step'] ) : current( array_keys( $this->steps ) ); // WPCS: CSRF ok, input var ok.
     
    // @codingStandardsIgnoreStart
    if ( ! empty( $_POST['save_step'] ) && isset( $this->steps[ $this->step ]['handler'] ) ) {
        call_user_func( $this->steps[ $this->step ]['handler'], $this );
    }

See this hook used in plugins: