an
groups-icon

Custom registration fields in DA theme

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    MURALIDHARAN RAMASAMY
    0 points
    Beginner

    There was some problem in custom registration fields which got deleted when we click on premiumpress menu > configuration for second time after updating custom registration fields and i found out due to below logic custom registration fields are getting reset to empty. Please update this in future release, it will be helpful for others.
    In admin-2-userfields.php, it is updating option regfields to empty for the second time if we visit same admin menu again, i think update_option("regfields", ""); is not needed.

    if(isset($_POST) && current_user_can('administrator') ){
    if(!isset($_POST['regfields'])){
    update_option("regfields", "");
    }else{
    update_option("regfields", $_POST['regfields']);
    }
    }

    $regfields = get_option("regfields");
    if(!is_array($regfields)){ $regfields = array(); }

    September 10, 2019 at 4:10 pm
  • Mark Fail
    11,847 points
    Platinum User
    Bronze User Silver User Gold User Platinum User Helpful Award Fast Responder Thank You Coffee Villian Award Video Testimonial
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    September 12, 2019 at 11:45 pm

986

Views

1

Replies