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);
function send_notification_for_publish_project( $post_id ) {
$notification_sent = get_post_meta($post_id, 'notification_sent_for_publish_project', true);
if(!$notification_sent){
if($notification_sent != true){
update_post_meta($post_id, 'notification_sent_for_publish_project', true);
update_post_meta($post_id, 'wpsl_country', 'CA');
delete_autoload_map_transient();
......@@ -53,7 +53,7 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
function send_notification_for_delete_project( $post_id ) {
$notification_sent = get_post_meta($post_id, 'notification_sent_for_delete_project', true);
if(!$notification_sent){
if($notification_sent != true){
update_post_meta($post_id, 'notification_sent_for_delete_project', true);
$email = get_post_meta($post_id, 'wpsl_email', true);
$subject = 'WYN Registration Denied';
......