Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Help with Basic Command to Add New Profile Fields

@tomdebruin

Participant

Presumably if I changed (or removed) the spelling of the codes in the names (not that I will), it would break and any info people had put in previously would be lost.

Only if you changed the name of the value. i.e.

'first_name' => array(0, __('What do they call you?')),

should be fine, as long as the first_name stays intact.

And I’ve increased the number parameter at the end of your add_action(‘extra_profile_info’, ‘add_descriptions’,15); – even I could work out that was important.

That number is the priority that the function should get in relation to everything else that’s loading on the page. Read about that here: https://codex.wordpress.org/Function_Reference/add_action

My code, btw, was at point got from this forum somewhere, so I can’t take credit for it. But it shows that anything in the functions.bb-pluggable.php file is easily replaced or manipulated.

Skip to toolbar