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

WordPress Trac noreply at wordpress.org
Fri Oct 13 20:39:02 UTC 2023


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

 * keywords:  good-first-bug has-patch => good-first-bug has-patch has-unit-
     tests has-testing-info needs-testing


Comment:

 == 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:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list