Hi! was wondering exactly the same, and think that in new version you have to use filters:
https://github.com/mikejolley/download-monitor/wiki/Action-and-filter-reference
Concretely: dlm_access_denied_redirect – Return a url to redirect somewhere if the user cannot access a file. Default is false.
Haven’t tested yet but I figure that the use would be similar to the one explained here:
https://github.com/mikejolley/download-monitor/wiki/do_not_force-filter
Anyway would be nice if Mike could confirm it!
dlm_access_denied_redirect is indeed the filter you need to use. Return a URL, e.g.
add_filter( 'dlm_access_denied_redirect', 'my_access_denied_redirect' );
function my_access_denied_redirect() {
return "http://yoursite.com/somepage";
}
Thread Starter
jt70
(@jt70)
Brilliant! Works like a champ.
Thanks for the help.
Jeff
Thanks for this.
What about keeping the “You do not have permission…’ screen but changing the wording and the redirect link provided?