Support » Plugin: Download Monitor » Redirection filter if not 'Members'

Viewing 2 replies - 1 through 2 (of 2 total)
  • Use this in your functions.pho file:

    /** Downloads Monitor redirection to login page for non-logged in members trying to download content */
    
    function redirection() {
        $redirected_url = $_SERVER['HTTP_REFERER'];
        $download_url = $_SERVER['REQUEST_URI'];
        $download_redirect = urlencode("{$redirected_url}?redirect-to={$download_url}");
    
        return "YOUR_URL_HERE";
    
    }
    
    // filter calls
    
    add_filter(dlm_access_denied_redirect,'redirection');

    Hi, that did the trick, thank you so much for your assistance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirection filter if not 'Members'’ is closed to new replies.