”Create a Group” button only allow admin to see
Hi everyone I was wondering which bp/wp permission function needs to be called in order to hide the “Create a Group” button on a group for regular users and make it visible for admins
in my index.php in wp-content/themes/bp-addata/groups/
i have tried adding is_super_admin() around line 6 but the button is not available for any users at this point. I might be making it harder than what I am trying to accomplish. sorry for the sloppy posting of code, i still don’t know how to post on these forums. Basically i just need to know which condition I need for the if statement to show the a href button.
if ( is_user_logged_in() && is_super_admin() ) Group button endif;
Thank you for any help,
- The topic ‘”Create a Group” button only allow admin to see’ is closed to new replies.