PHP function to display total number of members under Buddypress

Here is a small function for Buddypress which helped me greatly and which I wanted to share with you for those who need it: little highlighted in the doc, it allows display the total number of registered users on your network.

Very simple, this piece of code will be put in one of your theme files of your choice, in the sidebar for example:

<?php
echo bp_get_total_member_count();
?>

Don't miss business advice by email

No spam, just an email when new content is published.

And there you have it, all you have to do is embellish it with a few words, according to your needs.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

🕒 Quick and healthy meal? A perfect #keto bowl: a base of green vegetables, a protein (chicken, fish), a healthy fat (avocado, olive oil), oilseeds (chia, squash). Ready in 10 minutes. 👉 The complete guide to the ideal diet on http://blooness.com

💪 Keto ≠ 0 carbs.
Vegetables, berries and nuts are smart carbs that are compatible with a keto-Mediterranean diet. #KetoDiet
👉 Find the complete guide to the ideal diet on http://blooness.com

Load more

Don't miss business advice by email

No spam, just an email when new content is published.

en_USEN