rest_user_query

rest_user_query

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('rest_user_query') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php line 336
    		 *
    		 * @param array           $prepared_args Array of arguments for WP_User_Query.
    		 * @param WP_REST_Request $request       The REST API request.
    		 */
    		$prepared_args = apply_filters( 'rest_user_query', $prepared_args, $request );
    
    		$query = new WP_User_Query( $prepared_args );
    
    		$users = array();
    
    		foreach ( $query->results as $user ) {
    

See this hook used in plugins: