Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apex_micro_site
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Ali Arshad
apex_micro_site
Commits
df3af194
Commit
df3af194
authored
May 16, 2018
by
jenkins
Browse files
Options
Browse Files
Download
Plain Diff
Merge Request accepted by jenkins build success
parents
10225d27
a0948480
Pipeline
#545
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
functions.php
WWW_DATA/wp-content/plugins/apex_global_lms/functions.php
+13
-9
No files found.
WWW_DATA/wp-content/plugins/apex_global_lms/functions.php
View file @
df3af194
...
...
@@ -42,6 +42,10 @@ add_action( 'edited_vq_course_promo', 'save_course_promo', 10, 2 );
add_action
(
'wp_ajax_nopriv_check_promo'
,
'vq_check_promo'
,
10
,
2
);
add_action
(
'wp_ajax_check_promo'
,
'vq_check_promo'
,
10
,
2
);
function
set_html_content_type
(){
return
'text/html'
;
}
function
vq_check_promo
()
{
$code
=
$_POST
[
'data'
];
$val
=
-
1
;
...
...
@@ -173,18 +177,18 @@ function vq_lms_process_order()
$postContent
.=
$user
[
'phone'
]
.
"<br /><hr />"
;
}
$to
.=
', '
.
$user
[
'email'
];
$subject
=
"Checkout Confirmation"
;
$body
=
''
;
$body
.=
$postContent
;
add_filter
(
'wp_mail_content_type'
,
'set_html_content_type'
);
wp_mail
(
$to
,
$subject
,
$body
);
remove_filter
(
'wp_mail_content_type'
,
'set_html_content_type'
);
wp_mail
(
$to
,
"APEX Checkout"
,
$postContent
);
}
$to
.=
', '
.
$user
[
'email'
];
$subject
=
"Checkout Confirmation"
;
$body
=
''
;
$body
.=
$postContent
;
add_filter
(
'wp_mail_content_type'
,
'set_html_content_type'
);
wp_mail
(
$to
,
$subject
,
$body
);
remove_filter
(
'wp_mail_content_type'
,
'set_html_content_type'
);
wp_mail
(
$to
,
"APEX Checkout"
,
$postContent
);
if
(
$oid
>
0
)
{
$post
=
array
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment