BP_Media_Album::total_group_album_count( int $group_id )
Count total album for the given group
Description
Parameters
- $group_id
-
(Required)
Return
(array|bool|int)
Source
File: bp-media/classes/class-bp-media-album.php
public static function total_group_album_count( $group_id = 0 ) { global $bp, $wpdb; $total_count = (int) $wpdb->get_var( "SELECT COUNT(*) FROM {$bp->media->table_name_albums} WHERE group_id = {$group_id}" ); return $total_count; }
Changelog
Version | Description |
---|---|
BuddyBoss 1.2.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.