Support » Plugin: Swift SMTP (formerly Welcome Email Editor) » How to override the login url?

  • This is a beautiful plugin.
    Very easy to use, and works just like it is supposed to.
    However, I am looking for one additional feature: customizing login url

    Using the built in version of the welcome email, I was able to hook the the ‘login_redirect’ hook and change the login_url so the user could just click on a link in the email to return to the page where he (or she) started.

    This feature is clearly not supported by this plugin, because the login_url assignment is hard coded. I was just wondering if there are any suggestions for how I might add this feature to my local version.

    Thanks!

    https://wordpress.org/plugins/welcome-email-editor/

Viewing 1 replies (of 1 total)
  • Thread Starter mirgcire

    (@mirgcire)

    Okay … I fixed it.

    I changed lines 321 and 358 to

    $user_message = str_replace('[login_url]', wp_login_url(), $user_message);

    wp_login_url() is the function that applies the ‘login_url’ filter. So after adding this it works great.

Viewing 1 replies (of 1 total)
  • The topic ‘How to override the login url?’ is closed to new replies.