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.1

apply_filters('woocommerce_settings_tabs_array') is found 3 times:

  • /includes/admin/class-wc-admin-assets.php line 601
    		 *
    		 * @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
    				)
    			);
    
    			// 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
    			'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: