Support » Plugin: Ultimate Member - User Profile & Membership Plugin » field added using shortcode is not updated

  • bugCreator

    (@bugcreator)


    Hi
    I added a field to the user registration form and user profile form using shortcore (custom field)
    on the registration field it work fine but when editing the value on the user profile form, the value does not updated.
    How can make it work?

    my function:
    function color_picker_function( $atts){
    $a = shortcode_atts( array(
    ‘data-key’ => ‘theme_color_main’ //default value if no atts was passed to function;
    ), $atts );

    $key = $a[‘data-key’];

    /*
    * $key – is key that we get the save info in the form
    * defualt value is ‘theme_color_main’ the main color for each card theme.
    *
    *
    * input have jscolor class – this class help jscolor script, the script of the color picker to genetrate color picker in this input..
    *
    */

    $returnContent = ‘<p>
    <label for=”‘.$key.'”>color:</label> <input class=”jscolor um-form-field” id=”‘.$key.'” name=”‘.$key.'” type=”text” value=”#4378AF” data-key=”‘.$key.'”>’;

    return $returnContent;
    }

    add_shortcode( ‘color_picker’, ‘color_picker_function’ );

    the site:
    http://cards.s391.upress.link/

  • The topic ‘field added using shortcode is not updated’ is closed to new replies.