Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Here’s an example snippet that will redirect users from ?subscribers-only to your longer link:

    add_action( 'template_redirect', function () {
        if ( isset( $_GET['subscribers-only'] ) ) {
             wp_redirect( 'https://www.yoursite.com/?tl_inbound=1&tl_groups%5B0%5D=27316&tl_groups%5B1%5D=27293&tl_form_type=1&tl_period_type=3' );
        exit;
        }
    } );
Viewing 1 replies (of 1 total)

The topic ‘Code Snippet to shorten parameter string’ is closed to new replies.