um_api_output_format

Hook type

Filter

Description

UM Rest API output format

Parameters

$format

(string) Format

Usage

<?php add_filter( 'um_api_output_format', 'function_name', 10, 1 ); ?>

Examples

<?php
add_filter( 'um_api_output_format', 'my_api_output_format', 10, 1 );
function my_api_output_format( $format ) {
    // your code here
return $format;
}
?>

Change Log

Since: 2.0

Source

um_api_output_format is located in includes/core/class-rest-api.php::line 749