Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Do you need to include the keyword in the URL when you manually log in to the site at wp-login.php? If so, I’m surprised the plugin doesn’t use the login_url filter to add the keyword to the login URL automatically, in which case the link generated by User Switching would also get the keyword added to it. Might be worth asking the author of that plugin?

    Beyond the existing login_url filter, there’s no other filter available on the links used by User Switching for switching users. That’s by design, as needing to change the URL is, as you mention, not very common. That said, I am happy to add a filter to make this easier.

    I’ll try to find some time over the holidays to add that in.

    Thread Starter arcaswebdesign

    (@arcaswebdesign)

    If you login via wp-login.php then no, you don’t, as the site lock is only in place for guests/non-logged in users.

    The issue is purely in trying to access the site whilst not logged in. So it would be more about the page to which we are redirected after switching users needing to have the keyword appended to it.

    So rather than choosing SWITCH TO USER and it reroutes you to the previous page or homepage or whatever it does, it would reroute you to that page with the passphase appended to the URL.

    I guess if we were able to enable such an option then enter this somewhere in the plugin settings (so I would put “cmp_bypass=mykeyword” then the plugin would know to append that to the redirection URL after switching user)?

    As mentioned it’s not a HUGE issue as might be rarely used but whilst this membership site is in development we need to lock it to general access but also test the user accounts.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Ah so the issue is not with the actual switching, but the subsequent redirect. In that case the user_switching_redirect_to filter can be used to append the keyword to the URL. This feature doesn’t warrant an option on a settings screen in WordPress but if you speak with the author of the coming soon plugin they might be willing to use that filter to add the keyword as a URL query parameter.

    Thread Starter arcaswebdesign

    (@arcaswebdesign)

    Given that you have a filter already there, might it be better for me to just write a function to hook into that and append it myself?

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Yeah if you know how to add a filter, it should be quite straight forward!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Compatibility with Coming Soon & Maintenance plugin’ is closed to new replies.