Tagged Questions
0
votes
2answers
54 views
display specific sidebar for each role
Does someone know if it's possible to display a specific sidebar per user-role ? (only accessible if the user is logged as the specific role related to the specific sidebar )?
What I want is to have ...
0
votes
1answer
135 views
Conditional based on the User Role of the Current Profile the user is viewing - BuddyPress
I'm using BuddyPress and need a certain block of code to show up on user role Store Owner profiles only. I'll be putting it in member_header.php, so it's just a template file.
I've been digging for a ...
0
votes
1answer
124 views
add_cap for editor but no admin role
I want my editors to have the possibility, to add other users.
I added:
$edit_editor->add_cap('create_users');
$edit_editor->add_cap('delete_users');
...
3
votes
3answers
2k views
Disallow user from editing their own profile information
I'm currently developing an intranet and I am using Justin Tadlock's Members plugin to control roles and capabilities.
I have created a HR role to allow Human Resources staff to create and edit user ...
1
vote
3answers
741 views
Saving custom profile fields
I'm adding a custom profile field to users of a specific role, like this :
function add_custom_profile_fields( $fields ) {
// get current user ID
$user = new WP_User( $_GET['user_id'] );
...
