And do you have any idea why it wouldn’t work ?
I’ve simplified as much as possible
function my_acf_save_post( $post_id ) {
update_field( "field_5593bd8134102", "This is a test!", $post_id );
}
// run before ACF saves the $_POST['acf'] data
add_action('acf/save_post', 'my_acf_save_post', 1);
Then I got on a post, fill all the field, and publish the post but… “This is a test” never appears.
This code is used in the theme’s functions.php
Is there any previous step I may have missed ?