Is there a way to display the WordPress register form on a custom page the way one would use <?php get_search_form( $echo ); ?>
for a search form? If not how would one go about creating such a template? I would like to do this without Ajax btw. Any pointers/ideas are very welcome!
Leave a Reply
You must be logged in to post a comment.
Here is a function I’ve Used Before:
and you can call it like this:
Use this to redirect users to the page they were viewing before they were asked to log in/register
<?php if (!is_user_logged_in()) auth_redirect(); ?>
Put it at the very top (line 1) of the page templates you want to make private before you call the header. Let me know if you have any problems.