Is it possible to update only 1 field? For example, I just want to update the price, without first exporting and then importing again. so only 1 field is updated while the rest of the data remains the same.
If so, can you show me how?
thanks`
]]>My problem: I added a text field in mailchimp (the 21.), updated the form (it is the value of a checkbox, single checkbox), can see the MailChimp field in WordPress/Chimpmatic, added the field in the form, updated and assigned the filed in the MailChimp tab in CF7, I can see it in the mails, BUT it will be not transfered to MailChimp.
I can see in MailChimp debugging : the value for this attribut is empty :
... ,"MMERGE21":""}, ...
Can’t find an error in debug log. I checked double and triple, all correct. :-/
How can I track this further down?
Thanks for a tipp!!
All the best
kraeMit
Will sync continue to work as it has been if we don’t make any changes, i.e. select all fields we want updated?
At least for our use case I think it would be better to be able choose which fields not to update. We have a ton of fields and it’s going to be irritating having to select them all one at a time. It would be much easier to choose the single field we do not want updated.
]]>The field updates are always saved AFTER the post is saved so it always sends out the PREVIOUS field values (its like I’m always 1 step behind).
How can I let the POST UPDATE come LAST so that the then triggered action (send email) will have the latest field values included?
See code here: https://stackoverflow.com/questions/62221356/wordpress-post-update-after-acf-field-updates
]]>The field updates are always saved AFTER the post is saved so it always sends out the PREVIOUS field values (its like I’m always 1 step behind).
How can I let the POST UPDATE come LAST so that the then triggered action (send email) will have the latest field values included?
function yl_send_booking_email_after_post_update( $new_status, $old_status, $post ) {
if ( $new_status == $old_status ) {
if ( 'booking' === get_post_type() ) { // check the custom post type
$send_email = get_post_meta( $post->ID, 'bookings_field_send_email', true );
if ( $send_email === 'yes' ) {
$status = get_post_meta( $post->ID, 'bookings_field_status', true );
if ( $status === 'confirmed' ) {
$subject = get_post_meta( $post->ID, 'bookings_field_email_title_confirmed', true );
} else if ( $status === 'changed' ) {
$subject = get_post_meta( $post->ID, 'bookings_field_email_title_changed', true );
} else if ( $status === 'canceled by guest' ) {
$subject = get_post_meta( $post->ID, 'bookings_field_email_title_canceled_by_guest', true );
} else {
$subject = get_post_meta( $post->ID, 'bookings_field_email_title_canceled_by_us', true );
}
if ( $status === 'confirmed' ) {
$body = get_post_meta( $post->ID, 'bookings_field_email_content_confirmed', true );
} else if ( $status === 'changed' ) {
$body = get_post_meta( $post->ID, 'bookings_field_email_content_changed', true );
} else if ( $status === 'canceled by guest' ) {
$body = get_post_meta( $post->ID, 'bookings_field_email_content_canceled_by_guest', true );
} else {
$body = get_post_meta( $post->ID, 'bookings_field_email_content_canceled_by_us', true );
}
$to = get_post_meta( $post->ID, 'bookings_field_email', true );
$headers = array
(
'From: ' . get_bloginfo('name') . ' <' . get_bloginfo('admin_email') . '>',
'Bcc: ' . get_bloginfo('admin_email'),
'X-Mailer: PHP/' . phpversion(),
'MIME-Version: 1.0',
'Content-type: text/html; charset=iso-8859-1'
);
$headers = implode( "\r\n" , $headers );
wp_mail( $to, $subject, $body, $headers );
}
}
}
}
add_action( 'transition_post_status', 'yl_send_booking_email_after_post_update', 15, 3 );
]]>select “email” <> “[email protected]” Only if field value has changed
this is what we do
what even after this setting when some one even just hit update button of form even then this form sent mail to that particular mail id
we did not get i think its not working perfectly as mention
please help