Tulip Media

Entrepreneurial thoughts

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();
?>

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

 

My latest tweets

New shorts on Blooness 👉 Ultimate top of the best proteins: egg / beef / veal / poultry / lamb / offal / fish / shellfish / mature cheese / legumes
https://buff.ly/3Si8kfu

New shorts on Blooness 👉 Adding collagen to protein meals or eating cartilage with meat is one of the best ways to maintain muscle mass in terms of longevity.
https://buff.ly/4f8kMbs

New shorts on Blooness 👉 Secret of longevity: find meat from animals that are not mainly fed soybean meal, sunflower, corn, and other cereals.
https://buff.ly/3YpbrX5

Load more

Don't miss business advice by email

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

Leave a Reply

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

en_USEN