um_api_log_requests

Hook type

Filter

Description

Allow API request logging to be turned off

Parameters

$allow_log

(bool) Enable api logs

Usage

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

Examples

<?php
add_filter( 'um_api_log_requests', 'my_api_log_requests', 10, 1 );
function my_api_log_requests( $allow_log ) {
    // your code here
return $allow_log;
}
?>

Change Log

Since: 2.0

Source

um_api_log_requests is located in includes/core/class-rest-api.php::line 55