Ask the community

This is a community support forum where you can ask
questions and interact with other PremiumPress Customers.

Custom registration fields in DA theme

  • MURALIDHARAN
    MURALIDHARAN
    Newbie 33 points
    September 10, 2019 at 4:10 pm

    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(); }

  • Mark Fail
    Mark Fail
    Super Guru 12,822 points
    September 12, 2019 at 11:45 pm

    Thank you MURALIDHARAN.

    Ill have this sorted in the next update.

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