[ad_1]
I found this code and corrected it a bit. But it does not work properly. I want to count new users (daily and monthly) who join the site. For example :
new users today: 5
new users month: 30
Can anyone modify and test my code?
$date = getdate();
$data_user_reg = $wpdb->get_results("SELECT COUNT(*) FROM $wpdb->users WHERE user_registered AND MONTH(user_registered)= $date[mday]");
[ad_2]