Php code to Count total number of pending User Requests
-
hello there..
I want to know the Php code to Count total number of pending User Requests. i have a custom Admin page where i show the total registered users with the code<?php global $wpdb; $user_count = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->users" ); echo "<p>Total Subscribers= {$user_count}</p>"; ?>But now i want to know the code or any shortcode to show the total number of pending users who are waiting for admin approval.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Php code to Count total number of pending User Requests’ is closed to new replies.