bp_get_active_member_types( array $args = array() )

Get all profile types.

Description

Parameters

$args

(Optional) Arguments

Default value: array()

Return

(array) Member types

Source

File: bp-members/bp-members-functions.php

3347
3348
3349
3350
3351
3352
3353
function bp_get_active_member_types() {
 
    global $wpdb;
    $query = "SELECT DISTINCT ID FROM {$wpdb->posts} WHERE post_type = %s AND post_status = %s ORDER BY menu_order";
 
    return $wpdb->get_col( $wpdb->prepare( $query, bp_get_member_type_post_type(), 'publish' ) );
}

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.