User Role & Capability for "upload_files"
-
Hi, I’d like to give my Contributor user role access to the the “upload_files” capability, it’s the “Add Media” button above TinyMCE on the post screen, but still keeping the “Add Content Block” hidden.
$role_object = get_role( 'contributor' ); $role_object->add_cap( 'upload_files' ); // $role_object->remove_cap( ? );
Is there a capability for said button? Or how would I do that?
Thanks much!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘User Role & Capability for "upload_files"’ is closed to new replies.