Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ideadude committed Jul 22, 2015
2 parents 571383f + abd45c6 commit c3b297e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions preheaders/checkout.php
Expand Up @@ -563,12 +563,14 @@
"last_name" => $last_name)
);

$user_id = wp_insert_user($new_user_array);
$user_id = apply_filters('pmpro_new_user', '', $new_user_array);
if (!$user_id)
$user_id = wp_insert_user($new_user_array);

if (!$user_id || is_wp_error($user_id)) {
$pmpro_msg = __("Your payment was accepted, but there was an error setting up your account. Please contact us.", "pmpro");
$pmpro_msgt = "pmpro_error";
} else {
} elseif ( apply_filters('pmpro_setup_new_user', true, $user_id, $new_user_array) ) {

//check pmpro_wp_new_user_notification filter before sending the default WP email
if (apply_filters("pmpro_wp_new_user_notification", true, $user_id, $pmpro_level->id))
Expand Down

0 comments on commit c3b297e

Please sign in to comment.