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