Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How can I auto-populate a profile field in Buddypress?


jivany
Participant

@jivany

Well, you should be able to create pretty much everything you need in your theme’s functions.php file.

First you need to decide at what point you want to populate the fields. Find a hook in the code to attach to by looking for do_action(‘some_action_hook_name’) calls. In your functions.php file, make a new function and call something like:

add_action('some_action_hook_name','my_nifty_auto_pop_function');

Then create your nifty_auto_pop_function that fills in the xprofile fields you want to populate.

Look in the bp-xprofile directory for all of the different files/functions to help fill in and read profile fields.

Skip to toolbar