Hide tabs if user is not loged in
-
Is there any way to hide custom tab(s) if user is not logged in?
I want to display certain downloadable data, but only to logged in users.Right now I am using this code in functions.php:
if( $product->has_attributes() AND !is_user_logged_in() ) { unset( $tabs['additional_information'] ); }
To hide attributes tabs. Is something like this possible with custom tabs?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Hide tabs if user is not loged in’ is closed to new replies.