um_api_output_before
Hook type
Action
Description
Action before API output
Parameters
$data
(array) API data
$rest_api
(object) REST API class
$format
(string) Format
Usage
add_action( 'um_api_output_before', 'function_name', 10, 3 );
Examples
<?php add_action( 'um_api_output_before', 'my_api_output_before', 10, 3 ); function my_api_output_before( $data, $rest_api, $format ) { // your code here } ?>
Change Log
Since: 2.0
Source
um_api_output_before
is located in includes/core/class-rest-api.php::line 801