Viewing 1 replies (of 1 total)
  • Plugin Author Web Builder 143

    (@webbuilder143)

    @prpdesigns

    Thank you for using our plugin. To enable custom tabs exclusively for logged-in users, please refer to the following code snippet:

    add_filter('wb_cptb_alter_tabs', 'wb_cptb_hide_custom_tab_from_guest');
    function wb_cptb_hide_custom_tab_from_guest( $wb_tabs ) {
    	if ( ! is_user_logged_in() ) {
    		return array();
    	}
    
    	return $wb_tabs;
    }

    You can enable this code snippet by adding it to your active child theme’s functions.php file or by using any Code snippets plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Anyway to hide custom tabs to non-registered users?’ is closed to new replies.