Skip to content

Instantly share code, notes, and snippets.

@iMazed
Created October 1, 2016 13:17
Show Gist options
  • Save iMazed/82f5aa0a53524139ed1d8b64fced6994 to your computer and use it in GitHub Desktop.
Save iMazed/82f5aa0a53524139ed1d8b64fced6994 to your computer and use it in GitHub Desktop.
Change WooCommerce stock email recipient
add_filter('woocommerce_email_recipient_backorder', 'wc_change_admin_backorder_email_recipient', 1, 2);
function wc_change_admin_backorder_email_recipient( $recipient, $order ) {
global $woocommerce;
$recipient = "[email protected]"; // change this value to the appropriate email!
return $recipient;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment