wp_password_change_notification [ WordPress Function ]
wp_password_change_notification ( $user )
| Parameters: |
|
| Defined at: |
|
Soorgelijke functies: wpmu_welcome_notification, wp_new_blog_notification, wp_new_user_notification, wpmu_signup_user_notification, wp_suspend_cache_invalidation
Notify the blog admin of a user changing password, normally via email.
Source
<?php
function wp_password_change_notification(&$user) {
// send a copy of password change notification to the admin
// but check to see if it's the admin whose password we're changing, and skip this
if ( $user->user_email != get_option('admin_email') ) {
$message = sprintf(__('Password Lost and Changed for user: %s'), $user->user_login) . "\r\n";
// The blogname option is escaped with esc_html on the way into the database in sanitize_option
// we want to reverse this for the plain text arena of emails.
$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
wp_mail(get_option('admin_email'), sprintf(__('[%s] Password Lost/Changed'), $blogname), $message);
}
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/wp password change notification « WordPress ...
Function Reference/wp password change notification ... Source File. wp_password_change_notification() is located in wp-includes/pluggable.php. Retrieved ...
codex.wordpress.org - wp_password_change_notification
Function and Method Cross Reference. wp_password_change_notification(). Defined at: /wp-includes/pluggable.php -> line 1168. Referenced 1 times: ...
phpxref.ftwr.co.uk - wp_password_change_notification - Function Reference - PHP ...
May 3, 2010 ... wp_password_change_notification(). Defined at: /wp-includes/pluggable.php -> line 1133. Referenced 1 times: /wp-login.php -> line 231 ...
xref.yoast.com - Disable password changed/reset e-mail notification « WordPress ...
Mar 23, 2011 ... The function sending this e-mail is called wp_password_change_notification and is declared in pluggable.php. The great thing about the ...
wpquicktips.wordpress.com