wc_update_product_lookup_tables_is_running()
See if the lookup table is being generated already.
Хуков нет.
Возвращает
bool.
Использование
wc_update_product_lookup_tables_is_running();
Список изменений
| С версии 3.6.0 | Введена. |
Код wc_update_product_lookup_tables_is_running() wc update product lookup tables is running WC 11.2.2
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 );
}