Skip to content

Instantly share code, notes, and snippets.

@zedd45
Last active August 29, 2015 14:13
Show Gist options
  • Save zedd45/65e442baee4e5b41e237 to your computer and use it in GitHub Desktop.
Save zedd45/65e442baee4e5b41e237 to your computer and use it in GitHub Desktop.
Disable recover password email in Profile Builder for Wordpress
<?php
/**
* Plugin Name: Profile Builder Recover Password - No Confirmation Email
* Plugin URI: http://webbridgestudios.com/
* Description: Sending a password in plain text is a security risk. Disable the email that PB sends when a user preforms "recover password" action.
* Version: 0.1.3
* Author: Chris Keen
* Author URI: http://github.com/zedd45
* License: Dual License: GPL2 / MIT
*/
/* Copyright 2015 chris keen (email : christopher.keen@gmail.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
function wppbc_block_successful_pass_reset_email(){
return '';
}
add_filter('wppb_recover_password_message_title_sent_to_user2', 'wppbc_block_successful_pass_reset_email');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment