1
我正在buddypress自定義訂閱表單。如果支付完成 - buddypress wordpress
目前帳戶是在填寫會員表格後創建的,這意味着很多帳戶都是在不付款的情況下創建的。我們想清理這個爛攤子。
我想在付款步驟結束時創建賬戶。
$anyerrors = $error->get_error_code();
if(is_wp_error($error) && !empty($anyerrors)) {
$messages = $error->get_error_messages();
$content .= '<p class="error" id="reg-error" style="display: block;">';
$content .= implode('<br/>', $messages);
$content .= '</p>';
// Show the page so that it can display the errors
$content = $this->output_registeruser($content, $_POST);
} else {
$content = $this->output_paymentpage($user_id);
// everything seems fine (so far), so we have our queued user so let's
// run the bp complete signup action
do_action('bp_complete_signup');
// display the payment forms
if(!defined('MEMBERSHIP_NOLOGINONREGISTRATION')) {
if(!headers_sent()) {
wp_set_current_user($user_id);
wp_set_auth_cookie($user_id);
}
}
$含量= $這 - > output_paymentpage($ USER_ID);這條線負責重定向到PayPal。
do_action('bp_complete_signup');這是用於創建帳戶。
我想知道是否有任何方法可以從付款完成或沒有任何方式從PayPal獲得真實/虛假的'回覆'。
如何以適當的方式做到這一點?
由於提前, 亞當