Skip to content

Instantly share code, notes, and snippets.

@jondcampbell
Created September 23, 2020 18:50
Show Gist options
  • Save jondcampbell/ae96a9c20d3d93838c562e452b00986d to your computer and use it in GitHub Desktop.
Save jondcampbell/ae96a9c20d3d93838c562e452b00986d to your computer and use it in GitHub Desktop.
low stock notification change
/**
* Determine if the current product should trigger a low stock notification
*
* @param int $product_id - The low stock product id
*
* @since 4.4.0
*/
if ( false === apply_filters( 'woocommerce_should_send_low_stock_notification', true, $product->get_id() ) ) {
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment