Reply To: [Resolved] xProfile field being created with every reload
>Okay, it worked!!!
You mean using the register_activation_hook ?
btw – you should still check to see if the field exists before you create it – to avoid duplications if they deactivate / reactivate the plugin.
Or delete the field by using this hook:
https://codex.wordpress.org/Function_Reference/register_deactivation_hook
>can you please tell me what if it’s in the functions.php file, do I need to use the bp_init then or something else?
Perhaps bp_loaded is more appropriate, you’ll have to try it and find out.
BP related functions are usually placed in bp-custom.php