bp_member_type_display_on_profile( bool $default = false )

Is display on profile disabled?

Description

Parameters

$default

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

Default value: false

Return

(bool) True if display member type on profile is enabled, otherwise false.

Source

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

function bp_member_type_display_on_profile( $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_display_on_profile', (bool) bp_get_option( 'bp-member-type-display-on-profile', $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.