um_api_valid_query_modes

Hook type

Filter

Description

Whitelist UM query options

Parameters

$list

(array) Whitelist

Usage

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

Examples

<?php
add_filter( 'um_api_valid_query_modes', 'my_api_valid_query_modes', 10, 1 );
function my_api_valid_query_modes( $list ) {
    // your code here
return $list;
}
?>

Change Log

Since: 2.0

Source

um_api_valid_query_modes is located in includes/core/class-rest-api.php::line 688