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

apply_filters('woocommerce_settings_tabs_array') is found 4 times:

  • /includes/admin/class-wc-admin-assets.php line 600
    		 *
    		 * @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 151
    				)
    			);
    
    			// Get tabs for the settings page.
    			$tabs = apply_filters( 'woocommerce_settings_tabs_array', array() );
    
    			include dirname( __FILE__ ) . '/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',
    
  • /src/Admin/Features/Navigation/CoreMenu.php line 57
    		}
    
    		// Calling this method adds pages to the below tabs filter on non-settings pages.
    		\WC_Admin_Settings::get_settings_pages();
    		$tabs = apply_filters( 'woocommerce_settings_tabs_array', array() );
    
    		$menu_items = array();
    		$order      = 0;
    		foreach ( $tabs as $key => $setting ) {
    			$order       += 10;
    			$menu_items[] = (
    

See this hook used in plugins: