本文整理汇总了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);
}
}