WordPress.org

Forums

Profile Builder - front-end user registration, login and edit profile
[resolved] Is it possible to dispaly the Extra user fileds in the edit profile page (4 posts)

  1. naveenbos
    Member
    Posted 1 year ago #

    I am using Extra user fields profile plugin and profile builder plugin, i want to know that, is it possible to display that exrta fileds in the profile builder edit profile page?

    http://wordpress.org/plugins/profile-builder/

  2. barinagabriel
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hello,

    you can use the following filter to display anything in the edit profile page: extraEditProfileFilter

    something like:

    function my_new_data(){
    return 'Hello!';
    }
    add_filter ( 'extraEditProfileFilter', 'my_new_data');

    There are other filters in the page you can use, but this one will display the added data after the existing fields (right before the submit button).
    Also, if you want to add editable fields, make sure you add code for when posted data is sent to the server, as the above filter doesn't save the entered data *automatically*

    Regards,
    Gabriel

  3. naveenbos
    Member
    Posted 1 year ago #

    In which file i need to change ? is it possible to chage codes in your plugin?

  4. barinagabriel
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hello,

    you can change any file in the plugin, but we highly discourage this, as you will lose any changes made upon update.

    Instead, the above example can safely be added to your currently active theme's functions.php file, w/o worrying about future changes.

    Gabriel

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic