344c4fd3 by Jeff Balicki

ee

1 parent 39524c56
...@@ -34,7 +34,7 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3); ...@@ -34,7 +34,7 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
34 34
35 function send_notification_for_publish_project( $post_id ) { 35 function send_notification_for_publish_project( $post_id ) {
36 $notification_sent = get_post_meta($post_id, 'notification_sent_for_publish_project', true); 36 $notification_sent = get_post_meta($post_id, 'notification_sent_for_publish_project', true);
37 if(!$notification_sent){ 37 if($notification_sent != true){
38 update_post_meta($post_id, 'notification_sent_for_publish_project', true); 38 update_post_meta($post_id, 'notification_sent_for_publish_project', true);
39 update_post_meta($post_id, 'wpsl_country', 'CA'); 39 update_post_meta($post_id, 'wpsl_country', 'CA');
40 delete_autoload_map_transient(); 40 delete_autoload_map_transient();
...@@ -53,7 +53,7 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3); ...@@ -53,7 +53,7 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
53 53
54 function send_notification_for_delete_project( $post_id ) { 54 function send_notification_for_delete_project( $post_id ) {
55 $notification_sent = get_post_meta($post_id, 'notification_sent_for_delete_project', true); 55 $notification_sent = get_post_meta($post_id, 'notification_sent_for_delete_project', true);
56 if(!$notification_sent){ 56 if($notification_sent != true){
57 update_post_meta($post_id, 'notification_sent_for_delete_project', true); 57 update_post_meta($post_id, 'notification_sent_for_delete_project', true);
58 $email = get_post_meta($post_id, 'wpsl_email', true); 58 $email = get_post_meta($post_id, 'wpsl_email', true);
59 $subject = 'WYN Registration Denied'; 59 $subject = 'WYN Registration Denied';
......