Repository navigation
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 Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @37Rb. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If 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. |
AshishJii
marked this pull request as draft
November 17, 2026 08:20
AshishJii
force-pushed
the
feat/email-filters
branch
from
November 17, 2026 08:22
34bc1be to
96c257e
Compare
AshishJii
marked this pull request as ready for review
November 17, 2026 08:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Adds full-email customization filters (
two_factor_email_token_email,two_factor_password_reset_email, andtwo_factor_admin_password_reset_email) providingto,subject,message, andheadersto all remaining user-facing emails.Fixes #1039
Why?
Previously, several transactional emails could not be fully customized:
Content-Type: text/html.wp-login.php, causing friction for sites with frontend account portals.How?
two_factor_email_token_email( $email, $user, $token )immediately beforewp_mail(). Runs after existing subject and message filters.two_factor_password_reset_email( $email, $user )andtwo_factor_admin_password_reset_email( $email, $user )when password reset.readme.txtdocumenting arguments. Added unit test coverage for full customization and non-array return fallbacks.Use of AI Tools
AI assistance: Yes
Tool(s): Google Antigravity
Model(s): Gemini
Used for: Reviewing codebase precedents, drafting initial test cases, and preparing documentation; final implementation and tests were reviewed and validated by me.
Testing Instructions
Changelog Entry