Replies
Viewing 1 post (of 1 total)
You probably didn’t understand me. I mean the count of downloaded media files of users.
The plugin has a counter function mpp_get_media_count
For example, the “My Audio” counter can be made like this by passing the necessary arguments to it:
function agni_user_my_audio_count() {
$total_uploaded_audio = mpp_get_media_count(array(
‘component_id’ => bp_displayed_user_id(),
‘component’ => ‘members’,
‘type’ => ‘audio’,
‘status’ => ‘public’
) );echo $total_uploaded_audio;
}In this way, you can show the counters of photos, videos, files, and audio recordings.
Viewing 1 post (of 1 total)