Filter
rpress_privacy_api_access_log_item
On this page
Filters the data points exported for each API access log entry.
Runs in rpress_privacy_api_access_log_exporter() for each log entry of the user matching the requested email address. The data points cover the date, the request and the IP address. Each data point is an array with 'name' and 'value'.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$data_points | array | List of arrays with 'name' and 'value'. |
$log | WP_Post | The log post. |
Return value#
array. The data points for the log entry.
Example#
add_filter( 'rpress_privacy_api_access_log_item', 'my_export_api_log_id', 10, 2 );
function my_export_api_log_id( $data_points, $log ) {
$data_points[] = array(
'name' => __( 'Log ID', 'my-plugin' ),
'value' => $log->ID,
);
return $data_points;
}
Source#
Applied in:
includes/privacy-functions.php(line 806), inrpress_privacy_api_access_log_exporter()
See also#
Was this page helpful?
