In WordPress one of the most irritating thing that webmasters with multiple author feel is the lack of permission for the contributor to upload or insert images. When your blog is using post image its really hard as some one with a higher permission has to do the job. But there is a really simple trick to allow this. You just have to add this small piece of code to your functions.php file within your theme.
Wasn't that easy? For any doubts or suggestion use the comment form.
if ( current_user_can('contributor') && !current_user_can('upload_files') )
add_action('admin_init', 'allow_contributor_uploads');
function allow_contributor_uploads() {
$contributor = get_role('contributor');
$contributor->add_cap('upload_files');
}
Wasn't that easy? For any doubts or suggestion use the comment form.
Comments
Post a Comment