Forum Replies Created

Viewing 2 Topics - 1 through 2 (of 2 total)
Author Posts
October 29, 2013 at 4:25 pm in reply to: Update Profile Email 9560
Gian Mauro Gian Mauro

What do you think of this solution? If email exists I reset this and I write old email. there is a way to cancel the form-post and / or return a custom error message??

function my_verify_and_reset_email($user_data) {
	if (isset($_POST['user_email'])) {
		$user_info = get_userdata($user_data['ID']);
		$old_email = $user_info->user_email;
		if(email_exists($_POST['user_email'])) {			
			$user_data['user_email'] = $old_email;
		}        
    }
	return $user_data;
}
add_filter('wpuf_update_profile_vars', 'my_verify_and_reset_email');
October 22, 2013 at 2:47 pm in reply to: MAX_FILE_SIZE error in Image Upload 9288
Gian Mauro Gian Mauro

The problem is the conflict with “WP User Avatar” plugin. The max file size settings of this plugin conditions the max file size of WP User Frontend Pro. Suggestions?

Viewing 2 Topics - 1 through 2 (of 2 total)