本文整理匯總了PHP中WPSC_Purchase_Log::is_accepted_payment方法的典型用法代碼示例。如果您正苦於以下問題:PHP WPSC_Purchase_Log::is_accepted_payment方法的具體用法?PHP WPSC_Purchase_Log::is_accepted_payment怎麽用?PHP WPSC_Purchase_Log::is_accepted_payment使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WPSC_Purchase_Log
的用法示例。
在下文中一共展示了WPSC_Purchase_Log::is_accepted_payment方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _wpsc_action_update_purchase_log_status
/**
* Routine that runs when updating a purchase log's status.
* Currently, only used to send customer and admin emails upon successful purchase.
*
* @since 3.8.9
* @since 4.0 Removed coupons and stocks from email sending. Much easier now to remove_action() on either
* of those functions when desiring to override.
*
* @param int $id Purchase Log ID.
* @param int $status Current status.
* @param int $old_status Previous status.
* @param WPSC_Purchase_Log $purchase_log Purchase Log Object.
*
* @return void
*/
function _wpsc_action_update_purchase_log_status($id, $status, $old_status, $purchase_log)
{
if ($purchase_log->is_order_received() || $purchase_log->is_accepted_payment()) {
wpsc_send_customer_email($purchase_log);
wpsc_send_admin_email($purchase_log);
}
}