My Courses > CustomizeWoo > Module 5 > Lesson 07: Edit Single Product Tabs

Edit Single Product Tabs


Here’s another example about working with filter hooks. It will be difficult the first time but you’ll get used to it!


Please note: English captions are enabled by default (click on “CC” in the video player to disable). Also, you can click on the “gear” icon to manage quality and playback speed. Enjoy!

Sorry, this video is visible to logged in and fully registered students only.
If you already enrolled in this course, please LOG IN
Otherwise, please enroll in the FREE / PRO COURSE
For any other queries, feel free to get in touch

12 thoughts on “Edit Single Product Tabs

  1. Hey Rodolfo, where did you find the info that it’s $tabs that you have to return here? 🙂

    1. Good question Noelle. I could have returned $whatever or $buttons or $sections or $elements, it doesn’t make any difference, as long as you’re aware that the variable is an array and contains the list of tabs (as per the video). Does this help?

      1. It does. Thank you! Another question – when you create a new tab and write a function for the content, can you use do_shortcode in there?

        1. Of course – give it a go

  2. Hello Rodolfo,
    Please give me a method of how customers could add images to their reviews without a plugin. Do you think using ACF would be a possibility? Thank you!

    1. Not sure honestly, you could try ask ACF support?

  3. Solved. I do not know it is the most accurate method, but works:

    function woo_new_product_tab_content() {
        // The new tab content
        echo '<h2>New Product Tab</h2>';
        echo get_field( 'new_product_tab' );
    1. Sounds good to me!

    2. Just wondering what this solved, his last questions before the video ended?

      1. I think Marcel managed to place an Advanced Custom Field value into a tab. Makes sense?

  4. Hello Rodolfo,

    Could the tab “Documentation” you created to get content values from a custom field? I mean, instead:

    function  doc_tab_content ( ) {
    echo 'To download docs go whatever link' ;

    to have something like here:

    function  doc_tab_content ( ) {
    $value = get_field( "custom_field" ) ;

    The same question is available for the tab title. Could the tab title get the “title” from a custom field?
    I am referring mostly to ACF.
    Maybe the code I wrote earlier is not necessarily correct, but I want to have your opinion. And I am sure your answer will be positive!
    Thank you.

    1. Hey Marcel, the answer is “absolutely yes” to both questions 🙂 Give it a go and let me know if you can make it work!

Questions? Feedback? Support? Leave your comment now!

If you are writing code, please wrap it between: [php]code_here[/php]

Your email address will not be published. Required fields are marked *