public_html/wp-content/plugins/wp-statistics/includes/functions/functions.php
// This function will return the last date a post was published on your site.
This function will return the last date a post was published on your site.
This function will return the last date a post was published on your site .
function wp_statistics_lastpostdate() {
		global $wpdb, $WP_Statistics;
		$db_date = $wpdb->get_var( "SELECT post_date FROM {$wpdb->posts} WHERE post_type='post' AND post_status='publish' ORDER BY post_date DESC LIMIT 1" );
		$date_format = get_option( 'date_format' );
		return $WP_Statistics->Current_Date_i18n( $date_format, $db_date, false );
	}
function wp_statistics_lastpostdate ( ) { global $ wpdb , $ WP_Statistics ; $ db_date = $ wpdb -> get_var ( " SELECT post_date FROM  { $ wpdb -> posts }  WHERE post_type='post' AND post_status='publish' ORDER BY post_date DESC LIMIT 1 " ) ; $ date_format = get_option ( 'date_format' ) ; return $ WP_Statistics -> Current_Date_i18n ( $ date_format , $ db_date , false ) ; }
This function will return the last date a post was published on your site.
This function will return the last date a post was published on your site .