allow all users upload pictures

3.85K viewsWordPress
0

Hi Rahul

I need a situations that all visitors can upload photos, is it possible?

I think this script should do something.

 

function ap_user_can_upload_image(){
if(is_user_logged_in() && ap_opt(‘allow_upload_image’))
return true;

return false;
}

1

You can simply allow user to upload in AnsPress options -> permission

settings just allows admin and logged in user , I need all visitors to be allowed,even if they are not logged in.

this is the settings tab:
Allow image upload Allow logged-in users to upload image.