Skip to content
Docs
Get RestroPress

Filter

rpress_privacy_file_fooditem_log_item

Updated
On this page

Filters the data points built for each file download log entry in a personal data export.

Runs in rpress_privacy_file_fooditem_log_exporter() for each log entry belonging to the customer. The data points cover the order date, menu item name, order ID, customer ID, user ID and 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.
$log_metaarrayAll post meta of the log, as returned by get_post_meta().

Return value#

array. The data points for the log entry.

Example#

add_filter( 'rpress_privacy_file_fooditem_log_item', 'my_export_log_item', 10, 3 );
function my_export_log_item( $data_points, $log, $log_meta ) {
	$data_points[] = array(
		'name'  => __( 'Log ID', 'my-plugin' ),
		'value' => $log->ID,
	);
	return $data_points;
}

Notes#

In this version the filtered data points are not added to the items the exporter returns, so changes made here do not appear in the export.

Source#

Applied in:

  • includes/privacy-functions.php (line 747), in rpress_privacy_file_fooditem_log_exporter()

See also#

Was this page helpful?