Redirect Automatically Logged-In Users to a Custom Page

Code

Filename: gpal-redirect-automatically-logged-in-users-to-a-custom-page.php

<?php
/**
 * Gravity Perks // Auto Login // Redirect Automatically Logged-In Users to a Custom Page
 * https://gravitywiz.com/documentation/gravity-forms-auto-login/
 */
add_filter( 'gpal_auto_login_on_redirect_redirect_url', function( $redirect_url ) {
	return 'https://mydomain.com/custom_page';
} );

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.