Hide Custom Tabs
-
Read through the forum and found a couple of posts that seemed to fit my need. applies this code (given in each of the replies) to the functions.php. Unfortunately I can still see SRP tab and info even though I’m in not logged in or in incognito mode. Am I missing something or does this code no longer work? Thanks in advance! So appreciated!
add_filter(
‘yikes_woo_filter_all_product_tabs’,
function( $tabs ) {
if ( ! is_user_logged_in() ) {
unset( $tabs[‘SRP’] );
}
return $tabs;
}
);The page I need help with: [log in to see the link]
The topic ‘Hide Custom Tabs’ is closed to new replies.