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 *

 

What are the best (and worst) meats for healthy longevity? This is the subject of the new chapter devoted to the natural diet of ruminants, and the modifications made by humans, for better and for worse 👉 https://blooness.com/alimentation-ruminants/

Load more

Don't miss business advice by email

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

en_USEN