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

1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
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.