Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

email not updating on front end in user Profile . I checked class.bForm.php

Simple Membership Plugin › Forums › Simple Membership Plugin › email not updating on front end in user Profile . I checked class.bForm.php

Tagged: email updation on user profile

  • This topic has 0 replies, 1 voice, and was last updated 11 years, 6 months ago by ravindraji.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • March 5, 2015 at 8:46 am #1159
    ravindraji
    Participant

    I want to update email id in user profile all other filed updating but not email
    I checked this file class.bForm.php there is a function email()
    I think it is working currectly

    protected function email() {
    global $wpdb;
    if (!empty($this->fields[’email’])){
    return;
    }
    $email = filter_input(INPUT_POST, ’email’, FILTER_UNSAFE_RAW);
    if (empty($email)) {
    $this->errors[’email’] = BUtils::_(‘Email is required’);
    return;
    }
    if (!is_email($email)) {
    $this->errors[’email’] = BUtils::_(‘Email is invalid’);
    return;
    }
    $saned = sanitize_email($email);
    $query = “SELECT count(member_id) FROM {$wpdb->prefix}swpm_members_tbl WHERE email= %s”;
    $member_id = filter_input(INPUT_GET, ‘member_id’, FILTER_SANITIZE_NUMBER_INT);
    if (!empty($member_id)) {
    $query .= ‘ AND member_id !=%d’;
    $result = $wpdb->get_var($wpdb->prepare($query, strip_tags($saned), $member_id));
    }
    else{
    $result = $wpdb->get_var($wpdb->prepare($query, strip_tags($saned)));
    }

    if ($result > 0) {
    if ($saned != $this->fields[’email’]) {
    $this->errors[’email’] = BUtils::_(‘Email is already used.’);
    return;
    }
    }
    $this->sanitized[’email’] = $saned;
    }

  • Author
    Posts
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy