Skip to content

Instantly share code, notes, and snippets.

@sunilw
Created December 18, 2014 21:10
Show Gist options
  • Save sunilw/a5e53ab609ddc5eda777 to your computer and use it in GitHub Desktop.
Save sunilw/a5e53ab609ddc5eda777 to your computer and use it in GitHub Desktop.
if ( is_plugin_active( 'mailpress/MailPress.php' ) ) {
function get_mailpress_count() {
global $wpdb;
$mailpress_count = $wpdb->get_var($wpdb->prepare("SELECT COUNT(id) -1
FROM wp_mailpress_users WHERE status = 'active';"));
echo $mailpress_count;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment