If current user is contributor
-
What is the correct code for “contributor role”?
I want to make a php code for contributors only but don-t know what defines a contributor role.
This is the code i have right now.
<?php if ( current_user_can('edit_others_pages') { /// do something } else { /// do something else } ?>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘If current user is contributor’ is closed to new replies.