For the website I’m working on only those who are logged in should be able to download items. If they are not logged in, I’d like to send them to a customer url to ask them to either log in or register.
I’m trying to apply the filter to redirect users to the other url rather than the current download error page if they are not logged in. (just the login url for now, but a custom page later) I’m no expert, was hoping to get advice on the correct code to use in my functions file.
$download_url = wp_login_url(); $redirect = apply_filter( 'dlm_access_denied_redirect', true, $download_url );
- The topic ‘Redirection filter if not 'Members'’ is closed to new replies.