hopefully this fixes the email issue
Showing
1 changed file
with
2 additions
and
0 deletions
| ... | @@ -255,6 +255,8 @@ function send_email($uid, $contents,$args) { | ... | @@ -255,6 +255,8 @@ function send_email($uid, $contents,$args) { |
| 255 | if ($uid > 0) { | 255 | if ($uid > 0) { |
| 256 | $user = new WP_User($uid); | 256 | $user = new WP_User($uid); |
| 257 | $to_email = $user->user_email;//get_user_meta($uid,'home_email',true); | 257 | $to_email = $user->user_email;//get_user_meta($uid,'home_email',true); |
| 258 | } elseif (isset($args['email'])) { | ||
| 259 | $to_email = $args['email']; | ||
| 258 | } else { | 260 | } else { |
| 259 | return; | 261 | return; |
| 260 | } | 262 | } | ... | ... |
-
Please register or sign in to post a comment