redirect after registration
when a new user want to create listing he redirects to login page and after registration he redirects to home page......
but i want when new user register he will redirect to create listing page....
i have done in login template page (form-login.php) like below but not working..
function redirect_to_front_page() {
global $redirect_to;
if (!isset($_GET['redirect_to']))
{
$redirect_to = ‘
http://mysite/create-listing’;
} }
add_action('login_form', 'redirect_to_front_page');