um_api_output_data

Hook type

Filter

Description

Change output data for Rest API call

Parameters

$data

(array) Output Data

$query_mode

(string) Query Mode

$api_class

(REST_API) REST_API instance

Usage

<?php add_filter( 'um_api_output_data', 'function_name', 10, 3 ); ?>

Examples

<?php
add_filter( 'um_api_output_data', 'my_api_output_data', 10, 3 );
function my_api_output_data( $data, $query_mode, $api_class ) {
    // your code here
return $data;
}
?>

Change Log

Since: 2.0

Source

um_api_output_data is located in includes/core/class-rest-api.php::line 286