當前位置: 首頁>>代碼示例>>PHP>>正文


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怎麽用?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);
    }
}
開發者ID:ashik968,項目名稱:digiplot,代碼行數:22,代碼來源:purchase-log.helpers.php


注:本文中的WPSC_Purchase_Log::is_accepted_payment方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。