- new Email Templates logic with save template to Theme(Child Theme);

- small fixes;
This commit is contained in:
nikitozzzzzzz
2017-08-29 15:01:29 +03:00
parent f32d37c09e
commit 502231671b
27 changed files with 559 additions and 781 deletions
+3 -1
View File
@@ -84,7 +84,9 @@
*/
add_action('um_post_registration_listener', 'um_post_registration_listener', 10, 2);
function um_post_registration_listener( $user_id, $args ) {
if ( um_user('status') != 'pending' ) {
um_fetch_user( $user_id );
if ( um_user( 'status' ) != 'pending' ) {
UM()->mail()->send( um_admin_email(), 'notification_new_user', array( 'admin' => true ) );
} else {
UM()->mail()->send( um_admin_email(), 'notification_review', array( 'admin' => true ) );