Commit 7b25ed6e by jenkins

Merge Request accepted by jenkins build success

parents 7e241c32 e48045eb
Pipeline #533 failed with stage
in 0 seconds
...@@ -29,7 +29,7 @@ if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['download_submit'] ) ...@@ -29,7 +29,7 @@ if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['download_submit'] )
$course_cat = get_terms( array( $course_cat = get_terms( array(
'taxonomy' => 'vq_course_taxonomy', 'taxonomy' => 'vq_course_taxonomy',
'parent' => 0, //'parent' => 0,
'hide_empty' => false, 'hide_empty' => false,
)); ));
......
<?php <?php
$to_mail = get_option('vq_lms_payment_notify_email');
var_dump($to_mail);
die();
$order_id = $_GET['order_id']; $order_id = $_GET['order_id'];
...@@ -35,6 +39,10 @@ if($data && (string) $req_id === (string) $data->application->request_id) { ...@@ -35,6 +39,10 @@ if($data && (string) $req_id === (string) $data->application->request_id) {
/* Email Configuration */ /* Email Configuration */
$to = get_option('vq_lms_payment_notify_email'); $to = get_option('vq_lms_payment_notify_email');
//$to = "ammaryasir14@gmail.com";
//var_dump($to);
$sub = get_option('vq_lms_payment_email_subject'); $sub = get_option('vq_lms_payment_email_subject');
$body = get_option('vq_lms_payment_email_template'); $body = get_option('vq_lms_payment_email_template');
...@@ -49,8 +57,9 @@ if($data && (string) $req_id === (string) $data->application->request_id) { ...@@ -49,8 +57,9 @@ if($data && (string) $req_id === (string) $data->application->request_id) {
$body = str_replace('[[STATUS]]', $status, $body); $body = str_replace('[[STATUS]]', $status, $body);
$body = str_replace('[[RESPONSE]]', $pmsg, $body); $body = str_replace('[[RESPONSE]]', $pmsg, $body);
$mail_status = wp_mail($to, $sub, $body);
if(wp_mail($to, $sub, $body)) { if($mail_status) {
update_post_meta($order_id, 'email_status', 1); update_post_meta($order_id, 'email_status', 1);
} else { } else {
update_post_meta($order_id, 'email_status', 0); update_post_meta($order_id, 'email_status', 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment