How to Add a Section to Product tab in WooCommerce

By: Prem Tiwari | Last Updated: | In: WooCommerce


In this tutorial, I will explain how to add a section to product tab in WooCommerce with an example.

If you are a plugin developer and want to add a new section in product tabs in WooCommerce, then keep your close attention in this tutorial as I am going to share the WooCommerce hacks to add a section in product tabs.

How to Add a Section to Product tab in WooCommerce

Let’s create a section in product tab for the “slider”.

While creating a new section in product tab, the first thing we need to do is adding a new section by using the WooCommerce filters woocommerce_get_sections_products.

Now open the product tab and you will see another section as “WC Slider”.

Lets create a form for this section. Copy the below code and ad it to your functions.php file in case you don’t want to create your plugin otherwise put below code in your plugin file.

Refresh the Admin page, you will see the new section added as “WC Slider” with the basic options. You can change or customize the above code as per your requirement.

Liked this tutorial? Do Like & share with your friends 🙂


About: Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


You may also like:


, , , , ,