Hi, I’m trying to have files that are free to download for all
when the system executes this instruction $access = get_post_meta($media->ID, '__wpdm_media_access', true);
the result is not an array because the __wpdm_media_access value is blank
I selected ‘All visitors’ into my download definition.
The line of code I added just check if the value for that meta is empty and in case initialize the access right array with a ‘Public’ value. In this way the following checks will be succesful and the visitor can get his file.
I Hope this can describe the issue better than before
I apologize for my english