Also I see this it works
function disable_acf_field( $field ) {
$field['disabled'] = 1;
return $field;
}
add_filter('acf/prepare_field/name=duration_to_next_point', 'disable_acf_field');
I use this
function prevent_save_acf_value($value, $post_id, $field) {
return get_field($field['name'], $post_id);
}
add_filter('acf/update_value/key=field_5a82bff5e7421', 'prevent_save_acf_value', 10, 3);
But I thinks there should be more nice way =)
This code doesnt work…
Here how I use it https://src.fdrv.guru/180210124918.jpg
Result https://src.fdrv.guru/180210124232.jpg
Db looks like this after that code https://src.fdrv.guru/180210124339.jpg
If I try to add row from admin and then update post the db looks like this https://src.fdrv.guru/180210124510.jpg
I dont want to insert the row after save. I create a new post programatically and redirect him to edit this post screen, and I want repeater will be already with a row.
Here How I use it https://src.fdrv.guru/180210004359.jpg