c7aec104 by Jeff Balicki

dd

1 parent edbe4909
...@@ -40,8 +40,8 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3); ...@@ -40,8 +40,8 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
40 add_action('publish_wpsl_stores','send_notification_for_publish_project',10,1); 40 add_action('publish_wpsl_stores','send_notification_for_publish_project',10,1);
41 41
42 function send_notification_for_publish_project( $post_id ) { 42 function send_notification_for_publish_project( $post_id ) {
43 $notification_sent = get_post_meta($post_id, 'notification_sent_for_publish_project', true); 43 $notification_sent = get_post_meta($post_id, 'notification_sent_for_publish_project', 1);
44 if($notification_sent != true){ 44 if($notification_sent != 1){
45 update_post_meta($post_id, 'notification_sent_for_publish_project', true); 45 update_post_meta($post_id, 'notification_sent_for_publish_project', true);
46 update_post_meta($post_id, 'wpsl_country', 'CA'); 46 update_post_meta($post_id, 'wpsl_country', 'CA');
47 delete_autoload_map_transient(); 47 delete_autoload_map_transient();
...@@ -66,8 +66,8 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3); ...@@ -66,8 +66,8 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
66 add_action( 'trash_wpsl_stores', 'send_notification_for_delete_project' ,10,1); 66 add_action( 'trash_wpsl_stores', 'send_notification_for_delete_project' ,10,1);
67 67
68 function send_notification_for_delete_project( $post_id ) { 68 function send_notification_for_delete_project( $post_id ) {
69 $notification_sent = get_post_meta($post_id, 'notification_sent_for_delete_project', true); 69 $notification_sent = get_post_meta($post_id, 'notification_sent_for_delete_project', 1);
70 if($notification_sent != true){ 70 if($notification_sent != 1){
71 update_post_meta($post_id, 'notification_sent_for_delete_project', true); 71 update_post_meta($post_id, 'notification_sent_for_delete_project', true);
72 $email = get_post_meta($post_id, 'wpsl_email', true); 72 $email = get_post_meta($post_id, 'wpsl_email', true);
73 $subject = 'WYN Registration Denied'; 73 $subject = 'WYN Registration Denied';
......