Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Draft products cron check query

// WP_Query arguments
$args = array(
	'post_type'              => array( 'product' ),
	'post_status'            => array( 'draft' ),
	'nopaging'               => true,
	'posts_per_page'         => '10',
	'meta_query'             => array(
		array(
			'key'     => '_last_checked',
			'compare' => 'NOT EXISTS',
		),
		array(
		),
	),
);

// The Query
$query = new WP_Query( $args );