e4dc7cb8 by Jeff Balicki

ddd

1 parent 35968ce4
...@@ -19,7 +19,7 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3); ...@@ -19,7 +19,7 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
19 function publish_new_wpsl_stores($status, $ckf7_key, $submitted_data){ 19 function publish_new_wpsl_stores($status, $ckf7_key, $submitted_data){
20 20
21 $email = $submitted_data['your-email']; 21 $email = $submitted_data['your-email'];
22 $subject = 'Important Registration Information'; 22 $subject = 'WYN Important Registration Information';
23 $message = file_get_contents('https://fp-canada.gotenzing.com/wp-content/themes/understrap-child/inc/Registration-Confirmation.html'); 23 $message = file_get_contents('https://fp-canada.gotenzing.com/wp-content/themes/understrap-child/inc/Registration-Confirmation.html');
24 24
25 $headers_customer = array('Content-Type: text/html; charset=UTF-8'); 25 $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); ...@@ -31,10 +31,9 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
31 31
32 32
33 add_action('publish_wpsl_stores','send_notification_for_publish_project',10,1); 33 add_action('publish_wpsl_stores','send_notification_for_publish_project',10,1);
34
35 function send_notification_for_publish_project( $post_id ) { 34 function send_notification_for_publish_project( $post_id ) {
36 $email = get_post_meta($post_id, 'wpsl_email', true); 35 $email = get_post_meta($post_id, 'wpsl_email', true);
37 $subject = 'Important Registration Information'; 36 $subject = 'WYN Registration Aproved';
38 $message = file_get_contents('https://fp-canada.gotenzing.com/wp-content/themes/understrap-child/inc/Registration-Acceptance.html'); 37 $message = file_get_contents('https://fp-canada.gotenzing.com/wp-content/themes/understrap-child/inc/Registration-Acceptance.html');
39 38
40 $headers_customer = array('Content-Type: text/html; charset=UTF-8'); 39 $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); ...@@ -46,7 +45,7 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
46 add_action( 'trash_wpsl_stores', 'send_notification_for_delete_project' ,10,1); 45 add_action( 'trash_wpsl_stores', 'send_notification_for_delete_project' ,10,1);
47 function send_notification_for_delete_project( $post_id ) { 46 function send_notification_for_delete_project( $post_id ) {
48 $email = get_post_meta($post_id, 'wpsl_email', true); 47 $email = get_post_meta($post_id, 'wpsl_email', true);
49 $subject = 'Important Registration Information'; 48 $subject = 'WYN Registration Denied';
50 $message = file_get_contents('https://fp-canada.gotenzing.com/wp-content/themes/understrap-child/inc/Registration-Denied.html'); 49 $message = file_get_contents('https://fp-canada.gotenzing.com/wp-content/themes/understrap-child/inc/Registration-Denied.html');
51 50
52 $headers_customer = array('Content-Type: text/html; charset=UTF-8'); 51 $headers_customer = array('Content-Type: text/html; charset=UTF-8');
......