Hi,
Please help about this issue: Vendors (Memberships) can’t upload images to products. “An error occurred while loading. Please check again later.”
function allow_vendors_media_uploads() {
$vendor_role = get_role(‘seller’);
// Ensure Vendors Media Upload Capability
$vendor_role->add_cap(‘edit_posts’);
$vendor_role->add_cap(‘edit_post’);
$vendor_role->add_cap(‘edit_others_posts’);
$vendor_role->add_cap(‘edit_others_pages’);
$vendor_role->add_cap(‘edit_published_posts’);
$vendor_role->add_cap(‘edit_published_pages’);
$vendor_role->add_cap( ‘upload_files’ );
}
add_action( ‘init’, ‘allow_vendors_media_uploads’ );
This code also not helped.