Guest User

Untitled

a guest
Dec 17th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. <?php
  2. /*
  3. Plugin Name: Stop email change password
  4. Description: Whatever
  5. */
  6.  
  7. if ( !function_exists( 'wp_password_change_notification' ) ) {
  8. function wp_password_change_notification() {}
  9. }
  10. ?>
  11.  
  12. add_filter( 'send_email_change_email', '__return_false' );
  13.  
  14. /**
  15. * Disable Admin Notification of User Password Change
  16. *
  17. * @see pluggable.php
  18. */
  19. if ( ! function_exists( 'wp_password_change_notification' ) ) {
  20. function wp_password_change_notification( $user ) {
  21. return;
  22. }
  23. }
  24.  
  25. /**
  26. * Disable User Notification of Password Change Confirmation
  27. */
  28. add_filter( 'send_email_change_email', '__return_false' );
  29.  
  30. /**
  31. * Disable sending of the password change email
  32. */
  33. add_filter( 'send_password_change_email', '__return_false' );
  34.  
  35. <?php
  36. /*
  37. Plugin Name: Stop email change password
  38. Description: Whatever
  39. */
  40.  
  41. if (!function_exists('wp_password_change_notification')) {
  42. function wp_password_change_notification($user) {
  43. return;
  44. }
  45. }
  46. ?>
Add Comment
Please, Sign In to add comment