WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Utilities

ProductQuery::get_last_modified() public WC 1.0

Get last modified date for all products.

{} It's a method of the class: ProductQuery{}

No Hooks.

Return

Int. timestamp.

Usage

$ProductQuery = new ProductQuery();
$ProductQuery->get_last_modified();

Code of ProductQuery::get_last_modified() WC 5.7.0

public function get_last_modified() {
	global $wpdb;

	return strtotime( $wpdb->get_var( "SELECT MAX( post_modified_gmt ) FROM {$wpdb->posts} WHERE post_type IN ( 'product', 'product_variation' );" ) );
}