bp_media_get_user_total_group_media_count()
Get the groups media count of a given user.
Description
Return
(int) media count of the user.
Source
File: bp-media/bp-media-functions.php
function bp_media_get_user_total_group_media_count() { add_filter( 'bp_ajax_querystring', 'bp_media_object_template_results_media_groups_scope', 20 ); bp_has_media( bp_ajax_querystring( 'groups' ) ); $count = $GLOBALS['media_template']->total_media_count; remove_filter( 'bp_ajax_querystring', 'bp_media_object_template_results_media_groups_scope', 20 ); /** * Filters the total groups media count for a given user. * * @param int $count Total media count for a given user. * * @since BuddyBoss 1.4.0 */ return apply_filters( 'bp_media_get_user_total_group_media_count', (int) $count ); }
Changelog
Version | Description |
---|---|
BuddyBoss .3.6 | 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.