Skip to content
Docs
Get RestroPress

Filter

rpress_privacy_api_access_log_item

Updated
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#

ParameterTypeDescription
$data_pointsarrayList of arrays with 'name' and 'value'.
$logWP_PostThe 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), in rpress_privacy_api_access_log_exporter()

See also#

Was this page helpful?