Hide the Auction history tab on single auction pages that use the WooCommerce product tabs. Staff can still review auction activity in the dashboard.
Note:
This is a developer-level doc. If you are unfamiliar working with code and resolving potential conflicts, we recommend you work with a Woo Agency Partner for larger projects, or find a WooCommerce developer on Codeable for smaller customization work. We are unable to provide support for customization under our Support Policy.
Before you start
↑ Back to topUse a test store with Auctions for WooCommerce active, a theme that displays WooCommerce product tabs, and an auction with a visible Auction history tab. You need a site-specific plugin or equivalent custom PHP setup.
Remove the storefront tab
↑ Back to topAdd this filter in your custom PHP. It removes the Auctions for WooCommerce tab from WooCommerce’s tab list.
add_filter(
'woocommerce_product_tabs',
static function ( array $tabs ): array {
unset( $tabs['auctions_for_woocommerce_history'] );
return $tabs;
},
98
);
Verify the change
↑ Back to topReload the same single auction and confirm that the Auction history tab has gone and the other product tabs you use still appear. Check Auctions in the dashboard to confirm that staff can still open the auction and view its status.
If the tab still appears, check that your custom PHP is active and that the displayed history comes from WooCommerce’s product tabs. To undo the change, remove the filter and reload the auction.
Questions and support
↑ Back to topSomething missing from this documentation? Still have questions and need assistance?
- If you have a question about an extension or theme you’d like to purchase, visit our contact page and use the AI Assistant or contact options.
- If you already purchased this product and need some assistance, get in touch with a Happiness Engineer via our support page and select this product’s name from the Product dropdown.