当前位置: 首页>>代码示例>>PHP>>正文


PHP PMProEmail::sendBillingAdminEmail方法代码示例

本文整理汇总了PHP中PMProEmail::sendBillingAdminEmail方法的典型用法代码示例。如果您正苦于以下问题:PHP PMProEmail::sendBillingAdminEmail方法的具体用法?PHP PMProEmail::sendBillingAdminEmail怎么用?PHP PMProEmail::sendBillingAdminEmail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PMProEmail的用法示例。


在下文中一共展示了PMProEmail::sendBillingAdminEmail方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: PMProEmail

     $morder->billing->city = $bcity;
     $morder->billing->state = $bstate;
     $morder->billing->country = $bcountry;
     $morder->billing->zip = $bzipcode;
     $morder->billing->phone = $bphone;
     //$gateway = pmpro_getOption("gateway");
     $morder->gateway = $gateway;
     $morder->setGateway();
     $worked = $morder->updateBilling();
     if ($worked) {
         //send email to member
         $pmproemail = new PMProEmail();
         $pmproemail->sendBillingEmail($current_user, $morder);
         //send email to admin
         $pmproemail = new PMProEmail();
         $pmproemail->sendBillingAdminEmail($current_user, $morder);
     }
 } else {
     $worked = true;
 }
 if ($worked) {
     //update the user meta too
     $meta_keys = array("pmpro_bfirstname", "pmpro_blastname", "pmpro_baddress1", "pmpro_baddress2", "pmpro_bcity", "pmpro_bstate", "pmpro_bzipcode", "pmpro_bphone", "pmpro_bemail", "pmpro_CardType", "pmpro_AccountNumber", "pmpro_ExpirationMonth", "pmpro_ExpirationYear");
     $meta_values = array($bfirstname, $blastname, $baddress1, $baddress2, $bcity, $bstate, $bzipcode, $bphone, $bemail, $CardType, hideCardNumber($AccountNumber), $ExpirationMonth, $ExpirationYear);
     pmpro_replaceUserMeta($current_user->ID, $meta_keys, $meta_values);
     //message
     $pmpro_msg = sprintf(__('Information updated. <a href="%s">&laquo; back to my account</a>', 'pmpro'), pmpro_url("account"));
     $pmpro_msgt = "pmpro_success";
 } else {
     $pmpro_msg = $morder->error;
     if (!$pmpro_msg) {
开发者ID:Willislahav,项目名称:paid-memberships-pro,代码行数:31,代码来源:billing.php


注:本文中的PMProEmail::sendBillingAdminEmail方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。