Thanks for the reply, but seems like it’s not working.
I created two custom tabs, called Manuals and Softwares (from the Admin panel menu, so they are saved as a template); then, I added the code.
This is the code I inserted into the Theme’s custom CSS:
add_filter( ‘yikes_woo_filter_all_product_tabs’, ‘yikes_woo_hide_tabs_from_non_logged_in_users’, 10, 2 );
function yikes_woo_hide_tabs_from_non_logged_in_users( $tabs, $product ) {
if ( isset( $tabs[‘manuals’] ) && ! is_user_logged_in() ) {
unset( $tabs[‘manuals’] );
}
if ( isset( $tabs[‘softwares’] ) && ! is_user_logged_in() ) {
unset( $tabs[‘softwares’] );
}
return $tabs;
}
I can still see the tabs both as logged in (as should be) and logged out (shouldnt be).
Any help? ??
Thank you again