Home › Forums › Support › Shopping Cart icon This topic has 3 replies, 2 voices, and was last updated 8 years, 9 months ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts July 1, 2017 at 11:24 pm #342712 Frank Hi there, greetings! How can I make it so the Shopping Cart icon is only visible to logged in users. Can’t find any option or solution. THX in advance. Frank. July 2, 2017 at 8:42 am #342863 TomLead Developer Lead Developer Try this: add_action( 'after_setup_theme', 'tu_user_only_shopping_cart_icon' ); function tu_user_only_shopping_cart_icon() { if ( ! is_user_logged_in() ) { remove_filter( 'wp_nav_menu_items','generatepress_wc_menu_cart', 10, 2 ); } } July 2, 2017 at 10:49 pm #343217 Frank Hi there, The snippet does the trick. THX for the help! All the best. July 3, 2017 at 12:14 am #343245 TomLead Developer Lead Developer You’re welcome 🙂 Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In