Home › Forums › Front-end Issues › Front-End Media Upload Capabilities Issue › Reply To: Front-End Media Upload Capabilities Issue
Thanks for the nudge in the right direction. I think I was just a little lost in the weeds last night. Here is what I ended up with:
add_action('wp', 'allow_subscriber_uploads');
function allow_subscriber_uploads() {
$subscriber = get_role('subscriber');
// author caps
$subscriber->add_cap('edit_published_posts');
$subscriber->add_cap('delete_posts');
$subscriber->add_cap('edit_posts');
$subscriber->add_cap('upload_files');
// editor caps
$subscriber->add_cap('edit_others_posts');
}
That allows subscribers to upload and delete media.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.