Automattic\WooCommerce\Internal\CLI\Migrator\Lib
ImportSession::count_unfinished_frontloading_stubs
Method of the class: ImportSession{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ImportSession = new ImportSession(); $ImportSession->count_unfinished_frontloading_stubs();
ImportSession::count_unfinished_frontloading_stubs() ImportSession::count unfinished frontloading stubs code WC 10.8.1
public function count_unfinished_frontloading_stubs() {
global $wpdb;
return (int) $wpdb->get_var(
$wpdb->prepare(
"SELECT COUNT(*) FROM $wpdb->posts
WHERE post_type = 'frontloading_stub'
AND post_parent = %d
AND post_status != %s
AND post_status != %s",
$this->post_id,
self::FRONTLOAD_STATUS_SUCCEEDED,
self::FRONTLOAD_STATUS_IGNORED
)
);
}