Skip to content

Instantly share code, notes, and snippets.

@amans2k
Created August 9, 2023 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amans2k/6cc128877740190dc594df6c7dc72b81 to your computer and use it in GitHub Desktop.
Save amans2k/6cc128877740190dc594df6c7dc72b81 to your computer and use it in GitHub Desktop.
FunnelKit: Disable New User register native notification
<?php
/**
* This will unhook user registeration emails
*/
add_filter( 'init', function () {
remove_action( 'network_site_new_created_user', 'wp_send_new_user_notifications' );
remove_action( 'network_site_users_created_user', 'wp_send_new_user_notifications' );
remove_action( 'network_user_new_created_user', 'wp_send_new_user_notifications' );
remove_action( 'register_new_user', 'wp_send_new_user_notifications' );
remove_action( 'edit_user_created_user', 'wp_send_new_user_notifications' );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment