i used post object field but even this simple code that i put in function.php is not working
and posts are published
add_filter('acf/validate_value/name=persona', 'require_unique', 10, 4);
function require_unique($valid, $value, $field, $input) {
if (!$valid) {
return $valid;
}
$valid = 'This Value is not Unique';
return $valid;
}