Add total members to “Right Now” dashboard widget

Great little snippet that will display the total number of members within the Right now dashboard widget. Just add this to the functions.php of your wordpress theme and you are ready to go.

 

 

function dashboard_wps_user_count() {
 global $wpdb;
 $users = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->users");
?>
<table>
 <tbody>
 <tr class="first">
 <td class="first b b_pages"><a href="/users.php"><? echo $users; ?></a></td>
 <td class="t pages"><a href="/users.php">Members</a></td>
 </tr>
 </tbody>
</table>
<?}
add_action( 'right_now_content_table_end', 'dashboard_wps_user_count');
 

If you cant Download or have any Suggestions please Contact us

Newer news items:
Older news items:

 

Recommended Web Hosting For Bloggers and Designers

I recoomended Webhostings for Bloggers and Designers because I am freelancer, working with thousand clients in the worlds. Most of them will use those hosts.

vinaora vinaora
Hostting Features:
  1. Fast, Reliable, Affordable
  2. 100% Satisfaction Guarantee
  3. And More...
Special: Reach at 20% discount and 100$ for google adwords

GET STARTED

Add comment


Security code
Refresh

vinaora

Popular News

Our Website Staff

Favourites links

may tinh bang | sim so dep

luxcen viet nam
thiết kế Website
lam seo website