docs: document login_redirect filter for post-2FA redirect (#278)#849
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core SVNIf you're a Core Committer, use this list when committing to GitHub Merge commitsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
readme.txt
Outdated
|
|
||
| == Redirect After the Two-Factor Challenge == | ||
|
|
||
| To redirect users to a specific URL after completing the two-factor challenge, use the `login_redirect` filter: |
There was a problem hiding this comment.
Should we call out that this is a core WP filter and the plugin doesn't require any special treatment of the login redirect?
There was a problem hiding this comment.
@kasparsd good point, done :) what do you think?
Fixes #278
What?
Adds a short documentation entry to
readme.txtexplaining how to redirect users after the two-factor challenge completes.Why?
There was no documentation on how to control the post-login destination when 2FA is enabled.
How?
Adds a new
= Redirect After the Two-Factor Challenge =entry to the Actions & Filters section inreadme.txtwith a workinglogin_redirectfilter example.Testing Instructions
functions.php:/dashboard/.Screenshots or screencast
N/A
Changelog Entry