Using appthemes_after_registration to create a custom admin New User email
I've added a set of custom questions to my user registration page, which I'm storing in the user_meta table or
WP.
I want to display those custom questions in the email sent to the admin when a new user registers. So I copied app_new_user_notification() from theme-emails.php into my child theme functions.php, renamed it my_app_new_user_notification(), and added:
remove_action( 'appthemes_after_registration', 'app_new_user_notification', 10, 2 );
add_action( 'appthemes_after_registration', 'my_app_new_user_notification', 10, 2 );
Works great, except that I now get my new custom email, plus the standard email generated by app_new_user_notification(). So two emails to the admin for one new user registration.
For some reason app_new_user_notification() just does not want to be unhooked. Does anyone have any ideas?
Cheers, Bruce.