bp_search_settings_callback_xprofile( $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_xprofile( $args ) {
	$field       = $args['field'];
	$id          = $field->id;
	$option_name = 'bp_search_xprofile_' . $id;
	?>

	<input name="<?php echo $option_name ?>" id="<?php echo $option_name ?>" type="checkbox" value="1"
		<?php checked( bp_is_search_xprofile_enable( $id ) ) ?> />
	<label
		for="<?php echo $option_name ?>"><?php echo $field->name ?></label>

	<?php
}

Changelog

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.