It’s a great feature….but It took me two hours to figures out how to customize the Login Required Message (in Basic Settings) in order to get the redirect – the request is fairly simple:
- Document the available shortcode handles in the UI – [loginform],[this_url], [package_url]. I had to dig deep into the code (line 147 in wpdm functions) before i discovered these handy-dandy handles!
- I felt that [this_url] should have given a fully-qualified domain name, but maybe that’s just me
- there’s a lot of HTML is what i came up with for what is surely a pretty basic requirement – to come back to where I started, so maybe add another handle or shortcode which handles all this extra stuff for you
Example code – seems a bit of an effort for a basic requirement:
<a class="required-login-msg" href="http://mydomain.com/wp-login.php?redirect_to=http://mydomain.com[this_url]">Free Registration is Required in Order to Download Resources</a>