site_admin_email_change_email WordPress Filter Hook

Hello, If you administer a WordPress site, you may from time to time need to change the email address associated with your account. Our WordPress site_admin_email_change_email hook can make this process a breeze. With this hook, you can simply enter your new email address into the WordPress admin panel, and the change will be automatically reflected across your entire site. This includes any email addresses used for notifications or contact forms. There's no need to worry about losing any important data or settings - everything will be carried over to your new email address automatically. So why not give it a try today?

apply_filters( 'site_admin_email_change_email', array $email_change_email, string $old_email, string $new_email ) #

Filters the contents of the email notification sent when the site admin email address is changed.


Parameters

$email_change_email

(array)Used to build wp_mail().

  • 'to'
    (string) The intended recipient.
  • 'subject'
    (string) The subject of the email.
  • 'message'
    (string) The content of the email. The following strings have a special meaning and will get replaced dynamically:
    • ###OLD_EMAIL### The old site admin email address.
    • ###NEW_EMAIL### The new site admin email address.
    • ###SITENAME### The name of the site.
    • ###SITEURL### The URL to the site.
  • 'headers'
    (string) Headers.

$old_email

(string)The old site admin email address.

$new_email

(string)The new site admin email address.


Top ↑

Source

File: wp-includes/functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More