Skip to:
Content
Pages
Categories
Search
Top
Bottom

When do the BuddyPress xProfile fields get created for a new user?


  • Norman Cates
    Participant

    @normancates

    I’m trying to set some code that copies the data from a new user across to xProfile fields.

    But I’m wondering when that field creation triggers…

    SO that I can insert the function into the correct location using add_action

    I’m hoping that by the time WordPress gets to the ‘user_register’ function, and the actions being added, that the xProfile fields have been created…??

Viewing 6 replies - 1 through 6 (of 6 total)

  • Venutius
    Moderator

    @venutius

    There are two template files that are pertinient – plugins/buddypress/bp-templates/bp-legacy/buddypress/members/register.php and activate.php

    Inside these pages there are do_action functions that allow you to hook an action on that particular stage of the registration page. For example in activate.php there is bp_after_activation_page you could hook on that and check the user has successfully activated their account and gather your data.


    Norman Cates
    Participant

    @normancates

    Thank you.

    However, I am using a plugin that sends an email invite to people whoare to become users.

    They fill in a simple registration form, then submit it.

    And then log in to the website.

    At that point, they have access. They haven’t gone through any Buddypress registration forms.

    So I can’t hook those actions.

    At what point in the user registration process do the xProfile fields get created/populated for a new user. eg. When does the default Name field get populated in the user registration process.

    And is there a corresponding action I could hook?


    Venutius
    Moderator

    @venutius

    it’s that pluggins author you will need to ask


    Norman Cates
    Participant

    @normancates

    I don’t understand.

    Isn’t all the xProfle extra information part of Buddypress?

    I haven’t installed an extra plugin that has anything to do with xProfiles.

    AFAIK.


    Venutius
    Moderator

    @venutius

    That’s why I’d have a look in your plugin, find out what bp function it’s using to add the new user then see if there’s a hook off that.


    Norman Cates
    Participant

    @normancates

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar