Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: [Resolved] xProfile field being created with every reload

@shanebp

Moderator

For a plugin, instead of bp_init, use:
https://codex.wordpress.org/Function_Reference/register_activation_hook

note: I’m not sure BP is loaded before that hook is called.

Or you could use bp_init, but in your function, check for the existence of the xprofile field before you create it.

btw – you don’t need the global in that function.

Skip to toolbar