Starte hier!

Starte hier!

September 14, 2023

In den Geschichten kommen nicht nur Fred und Claudia vor! Hier lernst du die Hauptprotagoisten kennen!

Video lesson

Wie nutzt du die Audios am besten?

Video lesson
{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
>
//Disable the new user notification sent to the site admin function smartwp_disable_new_user_notifications() { //Remove original use created emails remove_action( 'register_new_user', 'wp_send_new_user_notifications' ); remove_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 ); //Add new function to take over email creation add_action( 'register_new_user', 'smartwp_send_new_user_notifications' ); add_action( 'edit_user_created_user', 'smartwp_send_new_user_notifications', 10, 2 ); } function smartwp_send_new_user_notifications( $user_id, $notify = 'user' ) { if ( empty($notify) || $notify == 'admin' ) { return; }elseif( $notify == 'both' ){ //Only send the new user their email, not the admin $notify = 'user'; } wp_send_new_user_notifications( $user_id, $notify ); } add_action( 'init', 'smartwp_disable_new_user_notifications' );
Success message!
Warning message!
Error message!