wc_update_product_lookup_tables_is_running()
See if the lookup table is being generated already.
No Hooks.
Return
true|false
.
Usage
wc_update_product_lookup_tables_is_running();
Changelog
Since 3.6.0 | Introduced. |
wc_update_product_lookup_tables_is_running() wc update product lookup tables is running code WC 9.3.3
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 ); }