Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: User-editable Custom Titles


citizenkeith
Participant

@citizenkeith

I think I need a little help with this one. I’m running 0.9.0.2 now.

Here’s the section in functions.php:

function get_profile_info_keys() {
return apply_filters( 'get_profile_info_keys', array(
'user_email' => array(1, __('Email')),
'user_url' => array(0, __('Website')),
'from' => array(0, __('Location')),
'occ' => array(0, __('Occupation')),
'interest' => array(0, __('Interests')),
) );
}

function get_profile_admin_keys() {
global $bbdb;
return apply_filters( 'get_profile_admin_keys', array(
$bbdb->prefix . 'title' => array(0, __('Custom Title'))
) );
}

So if I move that section up to get_profile_info_keys, it should look like this, correct?

function get_profile_info_keys() {
global $bbdb;
return apply_filters( 'get_profile_info_keys', array(
'user_email' => array(1, __('Email')),
'user_url' => array(0, __('Website')),
'from' => array(0, __('Location')),
'occ' => array(0, __('Occupation')),
'interest' => array(0, __('Interests')),
$bbdb->prefix . 'title' => array(0, __('Custom Title')),
) );
}

That pretty much removes everything from get_profile_admin_keys, so do I just take that entire section out?

Thanks for the helping hand…

Skip to toolbar