Here are the contents of a working example, placed in a php file in wp-includes/mu-plugins/
. The email is sent when a user completes the password reset action after clicking the reset link in the email they receive.
<?php
if( ! function_exists( 'wp_password_change_notification' ) ){
function wp_password_change_notification( &$user ){
wp_mail( get_option('admin_email'), 'Test', 'test' );
}
}
Related Posts:
- Customize default settings on new sites on multisite
- How to call plugin function per site in a multisite?
- Moving code from theme header to functions.php
- wp_redirect only works on main site and not on other sites
- List all blogs, but exclude the main site
- How to Redirect Buddypress Directories To Login Page For Non Logged in Users
- bp-custom.php is not working on a WordPress multisite environment. how to fix it?
- Remove node from multisites?
- PHP script to redirect traffic based on website accessed
- use system script advertising in wordpress multisite
- I need a button to appear when not loged in and another when logged in, I need help fixing code PLEASE!
- add_rewrite_rule image from /images/site2/favicon.ico to /favico.ico
- How to set and use global variables? Or why not to use them at all
- Is it possible to disable a function of a parent theme?
- Hide old attachments from wp media library
- PHP – redirect https to http and www to non-www
- How to overwrite youtube embed?
- Add footer.php to WordPress child theme
- Need to get specific data from array
- Restrict WordPress File Type Uploads by User Type
- Generating add_settings_section() calls dynamically
- Sort registered users by post count? (inside admin dashboard)
- How to change a public function inside a class of a plugin?
- Remove query string specific key value
- is_page “range” for if statement?
- Function set default image when image not present
- WooCommerce – Reset quantity input field when variation changes
- Query all posts of a custom taxonomy term
- Automatically remove a canceled order in Woocommerce
- Trying to establish connection to External Database
- How to remove the cufon script from Dzonia Lite theme [closed]
- Login/logout in header
- How to put “Read more” link in Custom Excerpt inside p tag?
- Error when adding excerpt to the content through functions.php
- wordpress media library new uploads don’t write to database
- Add data attribute to each li in menu
- Prev/Next child navigation for current page modifications?
- Adding rel tag to all external links
- Get users that likes the post
- How to abort saving data in save_extra_profile_fields function WordPress?
- Get the date of the className or classID
- Way to add captions to gallery images by code
- My custom get_the_excerpt() can’t get excerpt by ID
- meaning of (array)function()
- WordPress Options Page Theory Question
- deactivating an active plugin using if page
- How to make container class in PHP
- Prev/Next Links Broken on Static Front Page Pagination
- How do I check or test a WordPress Auto Year Change Script?
- Is there a built-in function to generate multiple paragraph tags based on a string with new line separators?
- How to use the checked() function to check for a non-empty var
- How to hide the author box of a specific user?
- Add date before entry title in Twenty Twelve
- Add a select-option to the default widgets
- Programmatically revert to backup .htaccess a possibility?
- can’t load .po file in functions.php
- WP-Bakery – Add custom colors to buttons with template colors
- WordPress User Meta value variable into Google Gauge Chart
- Create shortcode for metabox gallery
- Show all people who commented on all posts by an author
- How can I redefine WordPress wp-content directory programmatically?
- Trim Titles Only On Some Pages
- Custom global variable not working in function
- Embed video from streamtape using direct link
- Is there a PHP function that will return the block ID generated by WordPress?
- Creating a Function and Call It
- get_the_author_meta( ‘ID’ ) just return 1
- Enqueue sripts and styles only if function is called
- Site title not showing. Please help me
- Check if post visited first time
- Create form which redirects to site in network?
- ajaxurl usage for a custom function
- Store custom field’s multiple values in one user meta key
- Open/closed function [closed]
- Need to Echo A Url path to show on a wordpress page
- Theme editing “post thumbnail” help
- add a value to an external link query in searchform
- Restrict File Type Uploads by User on Wordress via functions.php
- How to Request a User to Register on Landing at a Site, Then Automatically Delete the Users Password on Logout?
- Resource 404 error on multisite subdirectory install
- AJAX Returning Way Too Many Posts
- Where can I find the declaration of `$_wp_theme_features`?
- redirect 301 with special character like WIX site “#!”
- How I can add div to menu?
- How to print redirected query string variables to the page?
- Admin-area broken through weird issues
- How to get category pages to look like a certain archive page?
- WP multisite network plugin fails to see classes loaded with spl autoload
- Host does not allow remote connection, so how do I transfer data to my WordPress site?
- How to call a specific value within the functions.php file?
- Select area and checkbox data is not saving?
- How to modify this function to exclude also the post belonging to a specific category?
- Suppress errors when using global function
- Warning: Attempt to read property “term_id” on int – Woocommerce
- Warning: filemtime(): stat failed for wp_
- Keep users logged in Without Remember Me
- How to use js variable to php in wordpress functions.php
- Alternative to php echo within code
- hiddenQuestions.find is not a function
- Internal server error when enabling Multisite in WordPress