Custom Fields
Re-Envisioned
Support MB User Profile Login Form with Dynamic Redirect URL

  • Creator
    Topic
  • #32599
    Andrew Tatum
    Participant

    In the shortcode, you can provide a redirect URL with the redirect parameter, but is there anyway that the value could be automatically populated based on a query string? Somewhat how like WordPress' normal login links work where it includes a "redirect_to" query string parameter.

    Thanks,
    AJ

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #32630
    Long Nguyen
    Moderator

    Hi AJ,

    You can add the query string to the redirect URL via the PHP code, like this

    $param1 = 'dog';
    $param2 = 'cat';
    echo do_shortcode('[mb_user_profile_login redirect="http://domain.com/specificpage/?parameter1=$param1&parameter2=$param2"]');
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.