woocommerce_settings_tabs_array

woocommerce_settings_tabs_array

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.2

apply_filters('woocommerce_settings_tabs_array') is found 3 times:

  • /includes/admin/class-wc-admin-assets.php line 601
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    *
     * @return void
     */
    public function enqueue_block_editor_assets() {
        $settings_tabs = apply_filters('woocommerce_settings_tabs_array', []);
     
        if ( is_array( $settings_tabs ) && count( $settings_tabs ) > 0  ) {
            $formatted_settings_tabs = array();
            foreach ($settings_tabs as $key => $label) {
                if (
                    is_string( $key ) && $key !== "" &&
  • /includes/admin/class-wc-admin-settings.php line 158
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
            )
        );
     
        // Get tabs for the settings page.
        $tabs = apply_filters( 'woocommerce_settings_tabs_array', array() );
     
        include __DIR__ . '/views/html-admin-settings.php';
    }
     
    /**
     * Get a setting from the settings API.
  • /includes/react-admin/connect-existing-pages.php line 36
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
        'tabs'  => $report_tabs,
    ),
    'wc-settings' => array(
        'title' => __( 'Settings', 'woocommerce' ),
        'tabs'  => apply_filters( 'woocommerce_settings_tabs_array', array() ), // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    ),
    'wc-status'   => array(
        'title' => __( 'Status', 'woocommerce' ),
        // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
        'tabs'  => apply_filters(
            'woocommerce_admin_status_tabs',

See this hook used in plugins: