• Resolved Andry

    (@blackstar1991)


    I need to add biography field textarea into Account page. That user can change this information on this page. How to do it ?

    I tryed like this

    function um_account_custom_fields($args, $shortcode_args)
    {
    
        $args_array = explode(',', $args);
        array_unshift($args_array, ',biography');
        $args_array[] = ',country';
        $args = implode(',', $args_array);
    
        return $args;
    }
    
    add_filter('um_account_tab_general_fields', 'um_account_custom_fields', 10, 2);

    but it dosen’t work

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Andry

    (@blackstar1991)

    Find right answer. Used incorect field.

    function um_account_custom_fields($args, $shortcode_args)
    {
    
        $args_array = explode(',', $args);
        array_unshift($args_array, ',description');
        $args_array[] = ',country';
        $args = implode(',', $args_array);
    
        return $args;
    }
    
    
    add_filter('um_account_tab_general_fields', 'um_account_custom_fields', 10, 2);
    Thread Starter Andry

    (@blackstar1991)

    After saving the changes to the form, for some reason a warning began to appear –

    Warning: Undefined array key "mode" in D:\LocalProjects\test-dev\app\public\wp-content\plugins\ultimate-member\includes\core\class-fields.php on line 2782

    Can you explaine why, and how to fix it ?

    Plugin Support andrewshu

    (@andrewshu)

    Hello @blackstar1991

    Sorry, but customizations are not included in our support.

    Regards.

    • This reply was modified 1 year, 2 months ago by andrewshu.
    Plugin Support andrewshu

    (@andrewshu)

    Hi @blackstar1991

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to add field Biography for account page’ is closed to new replies.