um_rest_api_get_stats

Hook type

Filter

Description

Change output data for Rest API get stats call

Parameters

$response

(array) Output Data

Usage

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

Examples

<?php
add_filter( 'um_rest_api_get_stats', 'my_rest_api_get_stats', 10, 1 );
function my_rest_api_get_stats( $response ) {
    // your code here
return $response;
}
?>

Change Log

Since: 2.0

Source

um_rest_api_get_stats is located in includes/core/class-rest-api.php::line 332