Hide the Auction history tab

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 top

Use 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 top

Add 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 top

Reload 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 top

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

Related Products

WooCommerce Subscriptions is a WooCommerce extension that lets customers subscribe to your products or...

Offer add-ons like gift wrapping, special messages or other special options for your products.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.