[wp-trac] [WordPress Trac] #59250: New Admin Email subject line should be filterable

WordPress Trac noreply at wordpress.org
Wed Jan 10 06:04:50 UTC 2024


#59250: New Admin Email subject line should be filterable
-------------------------------------------------+-------------------------
 Reporter:  MadtownLems                          |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  6.5
Component:  Administration                       |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-patch has-unit-   |     Focuses:
  tests has-testing-info needs-testing           |
-------------------------------------------------+-------------------------

Comment (by devmuhib):

 I added the function on theme functions.php file. But I guess the new
 subject is not applied.


 [[Image(https://prnt.sc/YvFm8hLZXxe-)]]

 Replying to [comment:3 shooper]:
 > == Testing Instructions
 > These steps define how to test the feature or enhancement, and indicates
 the expected behavior or results.
 >
 > === Steps to Test
 > 1. Add function to functions.php:
 >
 > {{{#!php
 > <?PHP
 > function updated_admin_email_subject() {
 >     return 'Filtered Admin Subject';
 > }
 > add_filter('new_admin_email_subject', 'updated_admin_email_subject');
 > }}}
 >
 >
 > 2. Login to to wp-admin dashboard
 > 3. Go to the Settings > General page
 > 4. Change the Administration Email Address
 > 5. Click on Save Changes
 >
 > === Expected Results
 > Lists each expected result or behavior, i.e. what should happen when
 running the test(s):
 > - ✅ E-Mail Received with "Filtered Admin Subject" as the subject line

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59250#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list