apply_filters( 'um_api_output_format', $format ) → {string}
Filters the REST API output format. JSON by default.
Parameters:
Name | Type | Description |
---|---|---|
$format |
string | REST API output format. |
- Since:
- 1.3.x
- Source:
Returns:
REST API output format.
- Type
- string
Example
function my_custom_um_api_output_format( $format ) {
// your code here
$format = 'xml';
return $format;
}
add_filter( 'um_api_output_format', 'my_custom_um_api_output_format' );