woocommerce_status_widget_low_in_stock_count_pre_query, null, $stock, $nostock
woocommerce_status_widget_low_in_stock_count_pre_query, null, $stock, $nostock
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_status_widget_low_in_stock_count_pre_query, null, $stock, $nostock') is found 1 times:
- /includes/admin/class-wc-admin-dashboard.php line 346
* @param null|string $low_in_stock_count Low in stock count, by default null. * @param int $stock Low stock amount. * @param int $nostock No stock amount */ $lowinstock_count = apply_filters( 'woocommerce_status_widget_low_in_stock_count_pre_query', null, $stock, $nostock ); if ( is_null( $lowinstock_count ) ) { $lowinstock_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT( product_id ) FROM {$wpdb->wc_product_meta_lookup} AS lookup