05/15/2014 at 11:24 am
#291328
Keymaster
@ Joseph
I would think that the better way to hide the admin menu from users would be to remove the View Admin Menu capability on the Connections : Roles admin page would be better and secure. Hiding it will still allow access if the user knew the URL/s.
Here’s the code that will hide it from view:
add_action( 'admin_menu', 'cn_remove_admin_menu', 999 );
function cn_remove_admin_menu() {
remove_menu_page('connections_dashboard');
}
Hope that helps!
