public_html/wp-content/plugins/wp-statistics/includes/functions/functions.php
// This function will return the total number of comments in WordPress.
This function will return the total number of comments in WordPress.
This function will return the total number of comments in WordPress .
function wp_statistics_countcomment() {
		global $wpdb;
		$countcomms = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->comments} WHERE comment_approved = '1'" );
		return $countcomms;
	}
function wp_statistics_countcomment ( ) { global $ wpdb ; $ countcomms = $ wpdb -> get_var ( " SELECT COUNT(*) FROM  { $ wpdb -> comments }  WHERE comment_approved = '1' " ) ; return $ countcomms ; }
This function will return the total number of comments in WordPress.
This function will return the total number of comments in WordPress .