Support » Plugin: Force Password Change » Change redirect URL

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Simon Blackbourn

    (@lumpysimon)

    Unfortunately there’s not an easy answer to this one.

    In theory I could easily add in a couple of hooks so you can set your own page to redirect to, but where it then gets difficult is when and how to check if the user has updated their password, because I have no way of knowing what the two password field names are called in MemberPress (or other similar plugins).

    I don’t know what your level of coding experience is, but you would need to:

    1. Change the value $screen->base is checked against at line 146.
    2. Change the value of the admin_url parameter at line 159.
    3. Possibly need to rewrite the updated function from line 107.
    4. Change the hook that calls this function at line 75.

    If MemberPress profile pages are on the front-end, rather than being an admin page, then you’ll need to pretty much rewrite the entire plugin!

    Cheers
    Simon

    Thread Starter Zion Eye Media

    (@onefunkybluesman)

    Hi Simon,
    Thanks for your response! From what I know of MP, they use the same password field names as WordPress (and I believe they just hook into it). I will definitely have to ask them personally, but that is my best educated guess.

    If it is the case where the passwords are the same fields, will the steps you mentioned be any different (or harder/easier)?

    Thanks!

    Plugin Author Simon Blackbourn

    (@lumpysimon)

    Sorry for the delay, I’ve been away on holiday.

    As far as I can tell, MemberPress password change pages are on the front-end, so a large chunk of the plugin would need rewriting (because it’s based on admin hooks).

    I’m sure it’s possible, but as it’s so specific it’s not something I could cover in this plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change redirect URL’ is closed to new replies.