Support » Plugin: Passwordless Login » Use of v1.0.9 redirect filter

  • Resolved edtorrey

    (@edtorrey)


    Not a PHP programmer, but have a custom Function page with filters from other plugin authors.

    Would you be able to offer some guidance for how to use the new Redirect to Target Page filter in version 1.0.9 of Passwordless Login?

    A link to a blog post or your coding site would suffice if some how to tips are offered.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Cristian Antohe

    (@sareiodata)

    Hi,

    Something as simple as:

    
    add_filter('wpa_after_login_redirect', function($url){
        return 'https://example.com/my-redirec-page/';
    });
    
    edtorrey

    (@edtorrey)

    Worked like a champ! Thank you Cristian 🙂

    paulroberts

    (@paulroberts)

    is there a list of available filters and examples?

    Plugin Author Cristian Antohe

    (@sareiodata)

    Unfortunately no. I recommend you just open the plugin and search for add_filter in it to see what’s available.

    It’s a really small plugin, a few hundred lines.

    Xyala

    (@xyala)

    Quick question related to this, i’d like to make a small edit which would be using

    add_filter('wpa_after_login_redirect', function($url){
        return 'https://example.com/my-redirec-page/';
    });

    but instead of returning a hardcoded URL, returns a parameter of the shortcode.
    Such as
    [passwordless-login redirect_URL="http://example.com/redirectafterlogin-page"]

    What would be the change to make to that filter?

    • This reply was modified 9 months ago by Xyala.
    • This reply was modified 9 months ago by Xyala.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Use of v1.0.9 redirect filter’ is closed to new replies.