Hide downloads when not logged in

in Download Manager Free

Viewing 2 posts - 1 through 2 (of 2 total)
Apr 6, 2021 at 12:09 pm
#150000
Participant
Michelle Keyo
OP

I have a page using the Gutenburg Blocks with a login form at the top and then two category blocks, but the category blocks are visible even when someone is not logged in. How do I hide them unless the visitor is logged in?

https://sedgwickbroadband.org/test/

Thank you!

Apr 6, 2021 at 1:28 pm
#150011

Add the following code after line 235 in /download-manager/tpls/wpdm-all-downloads.php file,

if( ! wpdm_user_has_access(get_the_ID())) continue; hope that will work.

Thanks

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

The topic "Hide downloads when not logged in" is closed to new replies.