Commit 6eba8a55 by nadeem.qasmi

course list file link sending in email to client

parent 7ac94d7c
Pipeline #485 passed with stage
in 0 seconds
...@@ -39,6 +39,8 @@ if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['download_submit'] ) ...@@ -39,6 +39,8 @@ if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['download_submit'] )
$link = ''; $link = '';
$id_cat = $cat->term_id; $id_cat = $cat->term_id;
$link = get_term_meta($id_cat, 'vq_course_ct_tax_redirect', true); $link = get_term_meta($id_cat, 'vq_course_ct_tax_redirect', true);
$options = get_option('vq_lms_settings_options');
$listUrl = $options['vq_lms_settings_field_courselist'];
if ( $catx == $id_cat ) { if ( $catx == $id_cat ) {
$courseName[] = '<a href = "'.$link.'">'.$cat->name.'</a>'; $courseName[] = '<a href = "'.$link.'">'.$cat->name.'</a>';
...@@ -46,6 +48,9 @@ if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['download_submit'] ) ...@@ -46,6 +48,9 @@ if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['download_submit'] )
} }
} }
$postContent .= '<strong>Download Courses: [' . implode( ', ', $courseName ) . '] </strong>'; $postContent .= '<strong>Download Courses: [' . implode( ', ', $courseName ) . '] </strong>';
$postContent .= '<br><strong>Courses List File: '. $listUrl .' </strong>';
$newDownloadRequest = array( $newDownloadRequest = array(
'post_title' => $fname . ' ' . $lname, 'post_title' => $fname . ' ' . $lname,
'post_type' => 'vq_lms_drequest', 'post_type' => 'vq_lms_drequest',
......
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