public_html/wp-content/plugins/wp-statistics/includes/functions/functions.php
// This function will return the total number of posts in WordPress.
This function will return the total number of posts in WordPress.
This function will return the total number of posts in WordPress .
function wp_statistics_countposts() {
		$count_posts = wp_count_posts( 'post' );
		$ret = 0;
		if( is_object( $count_posts ) ) { $ret = $count_posts->publish; }
		return $ret;
	}
function wp_statistics_countposts ( ) { $ count_posts = wp_count_posts ( 'post' ) ; $ ret = 0 ; if ( is_object ( $ count_posts ) ) { $ ret = $ count_posts -> publish ; } return $ ret ; }
This function will return the total number of posts in WordPress.
This function will return the total number of posts in WordPress .