um_api_output_after

Hook type

Action

Description

Action after API output

Parameters

$data

(array) API data

$rest_api

(object) REST API class

$format

(string) Format

Usage

add_action( 'um_api_output_after', 'function_name', 10, 3 );

Examples

<?php
add_action( 'um_api_output_after', 'my_api_output_after', 10, 3 );
function my_api_output_after( $data, $rest_api, $format ) {
    // your code here
}
?>

Change Log

Since: 2.0

Source

um_api_output_after is located in includes/core/class-rest-api.php::line 875