bp_search_settings_callback_user_field( $args )
Allow xProfile field search setting field
Description
Parameters
- $args
-
(Required) array
Source
File: bp-search/bp-search-settings.php
function bp_search_settings_callback_user_field( $args ) {
$field = $args['field'];
$id = $field['field_key'];
$option_name = 'bp_search_user_field_' . $id;
?>
<input name="<?php echo $option_name ?>" id="<?php echo $option_name ?>" type="checkbox" value="1"
<?php checked( bp_is_search_user_field_enable( $id ) ) ?> />
<label
for="<?php echo $option_name ?>"><?php echo $field['field_label'] ?></label>
<?php
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.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.