ACF_Field_User::format_value_for_rest
Apply basic formatting to prepare the value for default REST output.
Method of the class: ACF_Field_User{}
No Hooks.
Returns
mixed.
Usage
$ACF_Field_User = new ACF_Field_User(); $ACF_Field_User->format_value_for_rest( $value, $post_id, $field );
- $value(mixed) (required)
- .
- $post_id(string|int) (required)
- .
- $field(array) (required)
- .
ACF_Field_User::format_value_for_rest() ACF Field User::format value for rest code ACF 6.8.8
public function format_value_for_rest( $value, $post_id, array $field ) {
return acf_format_numerics( $value );
}