Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jeff Balicki
/
FP_Canada
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e4dc7cb8
authored
2022-01-21 15:50:25 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ddd
1 parent
35968ce4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
wp-content/themes/understrap-child/inc/emails.php
wp-content/themes/understrap-child/inc/emails.php
View file @
e4dc7cb
...
...
@@ -19,7 +19,7 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
function
publish_new_wpsl_stores
(
$status
,
$ckf7_key
,
$submitted_data
){
$email
=
$submitted_data
[
'your-email'
];
$subject
=
'Important Registration Information'
;
$subject
=
'
WYN
Important Registration Information'
;
$message
=
file_get_contents
(
'https://fp-canada.gotenzing.com/wp-content/themes/understrap-child/inc/Registration-Confirmation.html'
);
$headers_customer
=
array
(
'Content-Type: text/html; charset=UTF-8'
);
...
...
@@ -31,10 +31,9 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
add_action
(
'publish_wpsl_stores'
,
'send_notification_for_publish_project'
,
10
,
1
);
function
send_notification_for_publish_project
(
$post_id
)
{
$email
=
get_post_meta
(
$post_id
,
'wpsl_email'
,
true
);
$subject
=
'
Important Registration Information
'
;
$subject
=
'
WYN Registration Aproved
'
;
$message
=
file_get_contents
(
'https://fp-canada.gotenzing.com/wp-content/themes/understrap-child/inc/Registration-Acceptance.html'
);
$headers_customer
=
array
(
'Content-Type: text/html; charset=UTF-8'
);
...
...
@@ -46,7 +45,7 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
add_action
(
'trash_wpsl_stores'
,
'send_notification_for_delete_project'
,
10
,
1
);
function
send_notification_for_delete_project
(
$post_id
)
{
$email
=
get_post_meta
(
$post_id
,
'wpsl_email'
,
true
);
$subject
=
'
Important Registration Information
'
;
$subject
=
'
WYN Registration Denied
'
;
$message
=
file_get_contents
(
'https://fp-canada.gotenzing.com/wp-content/themes/understrap-child/inc/Registration-Denied.html'
);
$headers_customer
=
array
(
'Content-Type: text/html; charset=UTF-8'
);
...
...
Please
register
or
sign in
to post a comment