Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 113006

leejosepho on "How to block Subscriber from editing his/her Profile"

$
0
0

I have this all worked out now, and I have just one question:

Can I do the following in a function and still have each work independently?

if ( is_user_logged_in() ) {
if (current_user_can('subscriber')) {
if (current_user_can('member'))
function remove_profile_submenu() {

That entire section of code is about 20 lines long, and it makes sense to me that I should be able to only have it once while having multiple users together inside it.


Viewing all articles
Browse latest Browse all 113006

Trending Articles