Last active
February 10, 2018 12:05
-
-
Save albionselimaj/4958feaae9b4cc90e5a647e6ad0172f4 to your computer and use it in GitHub Desktop.
WooCommerce notify admin on user registration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'woocommerce_created_customer', function( $id ) { | |
wp_new_user_notification( $id, null, 'admin' ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment