Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #4040322
Wishlist button in the main menu
Open

Comments

  •  2
    Cristina started the conversation

    Hello! I would like to hide the button in the main menu for unregisters users.  

    Could you help me, please?

  •  1,500
    Dustin replied

    Hi Cristina,

    Please add the custom code below to hide the wishlist menu for unregistered users. (How to add custom code? ↗):

    add_filter( 'woosw_menu_item', function ( $menu_item ) {
    	if ( ! is_user_logged_in() ) {
    		return '';
    	}
    
    	return $menu_item;
    } );

    Best regards,
    Dustin

  •  2
    Cristina replied

    Thank you!!