bp_disable_advanced_profile_search( bool $default = false )

Is advanced profile search disabled?

Description

Parameters

$default

(Optional) Fallback value if not found in the database. Default: true.

Default value: false

Return

(bool) True if profile search is enabled, otherwise false.

Source

File: bp-core/bp-core-options.php

function bp_disable_advanced_profile_search( $default = false ) {

	/**
	 * Filters whether or not profile search is disabled.
	 *
	 * @since BuddyBoss 1.0.0
	 *
	 * @param bool $value Whether or not profile search is disabled.
	 */
	return (bool) apply_filters( 'bp_disable_advanced_profile_search', ! (bool) bp_get_option( 'bp-enable-profile-search', $default ) );
}

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.