bp_member_type_enable_disable( bool $default = false )

Is member type disabled?

Description

Parameters

$default

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

Default value: false

Return

(bool) True if member type enabled, otherwise false.

Source

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

function bp_member_type_enable_disable( $default = false ) {

	/**
	 * Filters whether profile type is enabled or not.
	 *
	 * @since BuddyBoss 1.0.0
	 *
	 * @param bool $value Whether profile type is enabled or not.
	 */
	return (bool) apply_filters( 'bp_member_type_enable_disable', (bool) bp_get_option( 'bp-member-type-enable-disable', $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.