mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
5 lines
299 B
Text
5 lines
299 B
Text
add_action( 'woocommerce_email', 'wc_disable_stock_emails' );
|
|
function wc_disable_stock_emails( $email_class ) {
|
|
remove_action( 'woocommerce_low_stock_notification', array( $email_class, 'low_stock' ) );
|
|
remove_action( 'woocommerce_no_stock_notification', array( $email_class, 'no_stock' ) );
|
|
}
|