um_rest_query_mode

Hook type

Filter

Description

Change query attributes

Parameters

$data

(array) Query Data

$query_mode

(string) Query Mode

$args

(array) Query Arguments

Usage

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

Examples

<?php
add_filter( 'um_rest_query_mode', 'my_rest_query_mode', 10, 3 );
function um_rest_query_mode( $data, $query_mode, $args ) {
    // your code here
return $data;
}
?>

Change Log

Since: 2.0

Source

um_rest_query_mode is located in includes/core/class-rest-api.php::line 260