Tabs in product page

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 1 reply thread
  • Author
    Posts
    • #65888
      iliasgas
      Participant

      Hello,
      I am using the filter ‘woocommerce_product_tabs’ to get the tabs and their info from $tabs variable.

      function my_func_replace_woocommerce_product_tabs( $tabs ) {
      	
      	foreach($tabs as $key => $value){
      		//i am doing some coding here
      	}
      
      	return $tabs;
      }
      add_filter( 'woocommerce_product_tabs', 'my_func_replace_woocommerce_product_tabs', 98 );

      But the tabs “Store Policies” and “Inquiries” are not there. How can I access them?
      Thanks

    • #66042
      WCFM Forum
      Keymaster

      HI,

      Your code is right, just change priority of filter –

      add_filter( 'woocommerce_product_tabs', 'my_func_replace_woocommerce_product_tabs', 500 );

      Thank You

Viewing 1 reply thread
  • You must be logged in to reply to this topic.