You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New user notifications are not being sent. It appears that the function wp_new_user_notification should be fired after the user has successfully registered.
What needs to be done is:
The wp_new_user_notification needs to be fired after a new user has been successfully added.
Ideally rather than just adding the new user notice method in two locations, the said methods would be re-factored to only be required to set-up the needed params, and hand them off to one single register method, i.e., we would move wp_create_user, and wp_insert_user(honestly not sure why I used two different wp functions?) from those methods into one method that is called by both, $this->register( $user ).
Also:
This would change names to setup_user(), since it would only handle setting the params for the user. public function register_submit()
This would change names to setup_facebook_user(), since it would only handle setting params for the fb user public function create_facebook_user()
Both of these would then call the following, which handles adding the new user, and return a status code of sorts. public function register( $params )
Additionally the settings for WP, and WP Networking allowing new user notifications to be sent need to be taken into consideration, along with the custom email that the Pro version sends.
The text was updated successfully, but these errors were encountered:
New user notifications are not being sent. It appears that the function wp_new_user_notification should be fired after the user has successfully registered.
What needs to be done is:
The
wp_new_user_notification
needs to be fired after a new user has been successfully added.There's currently two locations this would need to be added; one is in the create_facebook_user method, and the other is in the register_submit method.
Ideally rather than just adding the new user notice method in two locations, the said methods would be re-factored to only be required to set-up the needed params, and hand them off to one single register method, i.e., we would move
wp_create_user
, andwp_insert_user
(honestly not sure why I used two different wp functions?) from those methods into one method that is called by both, $this->register( $user ).Also:
This would change names to setup_user(), since it would only handle setting the params for the user.
public function register_submit()
This would change names to setup_facebook_user(), since it would only handle setting params for the fb user
public function create_facebook_user()
Both of these would then call the following, which handles adding the new user, and return a status code of sorts.
public function register( $params )
Additionally the settings for WP, and WP Networking allowing new user notifications to be sent need to be taken into consideration, along with the custom email that the Pro version sends.
The text was updated successfully, but these errors were encountered: