wc_update_product_lookup_tables_is_running()
See if the lookup table is being generated already.
Description Description
Return Return
(bool)
Source Source
File: includes/wc-product-functions.php
function wc_update_product_lookup_tables_is_running() {
$table_updates_pending = WC()->queue()->search(
array(
'status' => 'pending',
'group' => 'wc_update_product_lookup_tables',
'per_page' => 1,
)
);
return (bool) count( $table_updates_pending );
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.6.0 | Introduced. |