Hello,
I just faced a case like this and this worked with me
add_filter('acf/validate_value/key=field_5d3c9ebc8acdd', 'disable_field_validation', 999, 4);
// you can change key with name or type=url.
function teasdasdad($valid, $value, $field, $input ) {
// Also you can write your own validation here.
return true;
}
You can remove this line from wpuf.php, line 167.
wp_enqueue_script( 'google-maps', $scheme . '://maps.google.com/maps/api/js?sensor=true' );
Hello,
I was searching for how to add a feature image through ACF Form, but I ended up here, and this helped me to find the solution.
I hope this helps you.
add_action('acf/save_post', 'acf_set_featured_image');
function acf_set_featured_image($post_id){
$value = get_field('post_image', $post_id);
if($value != ''){
add_post_meta($post_id, '_thumbnail_id', $value);
}
return $value;
}
This action check if you updated the field “post_image” from a frontend form and update the feature image with the same image.