Stefano Cardinale

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
Dec 12, 2021 at 7:24 pm
#165604
Participant
Stefano Cardinale
OP

I’m sorry to inform you that on my system the meta key stored on db is empty for that value (All Visitors), I’m mount a test site without any other plugin to make another test, but I’m pretty sure that there is a problem

Dec 10, 2021 at 3:42 pm
#165553
Participant
Stefano Cardinale
OP

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

Viewing 2 posts - 1 through 2 (of 2 total)