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);
add_action('publish_wpsl_stores','send_notification_for_publish_project',10,1);
function send_notification_for_publish_project( $post_id ) {
$notification_sent = get_post_meta($post_id, 'notification_sent_for_publish_project', true);
if($notification_sent != true){
$notification_sent = get_post_meta($post_id, 'notification_sent_for_publish_project', 1);
if($notification_sent != 1){
update_post_meta($post_id, 'notification_sent_for_publish_project', true);
update_post_meta($post_id, 'wpsl_country', 'CA');
delete_autoload_map_transient();
......@@ -66,8 +66,8 @@ 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 ) {
$notification_sent = get_post_meta($post_id, 'notification_sent_for_delete_project', true);
if($notification_sent != true){
$notification_sent = get_post_meta($post_id, 'notification_sent_for_delete_project', 1);
if($notification_sent != 1){
update_post_meta($post_id, 'notification_sent_for_delete_project', true);
$email = get_post_meta($post_id, 'wpsl_email', true);
$subject = 'WYN Registration Denied';
......