bp_xprofile_get_field_types()
Get details of all xprofile field types.
Description
Return
(array) Key/value pairs (field type => class name).
Source
File: bp-xprofile/bp-xprofile-functions.php
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 | function bp_xprofile_get_field_types() { $fields = array ( 'checkbox' => 'BP_XProfile_Field_Type_Checkbox' , 'datebox' => 'BP_XProfile_Field_Type_Datebox' , 'multiselectbox' => 'BP_XProfile_Field_Type_Multiselectbox' , 'number' => 'BP_XProfile_Field_Type_Number' , 'url' => 'BP_XProfile_Field_Type_URL' , 'radio' => 'BP_XProfile_Field_Type_Radiobutton' , 'selectbox' => 'BP_XProfile_Field_Type_Selectbox' , 'textarea' => 'BP_XProfile_Field_Type_Textarea' , 'textbox' => 'BP_XProfile_Field_Type_Textbox' , 'telephone' => 'BP_XProfile_Field_Type_Telephone' , 'gender' => 'BP_XProfile_Field_Type_Gender' , 'socialnetworks' => 'BP_XProfile_Field_Type_Social_Networks' , ); /** * Filters the list of all xprofile field types. * * If you've added a custom field type in a plugin, register it with this filter. * * @since BuddyPress 2.0.0 * * @param array $fields Array of field type/class name pairings. */ return apply_filters( 'bp_xprofile_get_field_types' , $fields ); } |
Changelog
Version | Description |
---|---|
BuddyPress 2.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.