How to prevent menu showing when user not logged in?
-
You are certainly very brave to have taken the step of rewriting from scratch a very popular plugin! I hope you still feel that all the effort was worthwhile!
My question is this. While I know I could use
display: none;
in CSS, I would much prefer not to have the menu be output at all for logged-out visitors. With the previous version, I used the following code to hide the menu from logged-out visitors:if ( !is_user_logged_in() ) { remove_action( 'wp_footer', array( 'RM_HTMLController', 'display' ) ); }
The new code looks substantially more complex, so I haven’t been able to work out something equivalent. What do you suggest?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to prevent menu showing when user not logged in?’ is closed to new replies.