Skip to content
Docs
Get RestroPress

Filter

rpress_privacy_order_details_item

Updated
On this page

Filters the data points exported for each order in a personal data export.

Runs in rpress_privacy_billing_information_exporter() once per order, after the default data points (order number, dates, total, items, email, billing address, IP address and status) have been built. Each data point is an array with 'name' and 'value'.

Parameters#

ParameterTypeDescription
$data_pointsarrayList of arrays with 'name' and 'value'.
$paymentRPRESS_PaymentThe order being exported.

Return value#

array. The data points for the order.

Example#

add_filter( 'rpress_privacy_order_details_item', 'my_export_order_service_type', 10, 2 );
function my_export_order_service_type( $data_points, $payment ) {
	$data_points[] = array(
		'name'  => __( 'Service type', 'my-plugin' ),
		'value' => (string) get_post_meta( $payment->ID, '_rpress_delivery_type', true ),
	);
	return $data_points;
}

Source#

Applied in:

  • includes/privacy-functions.php (line 668), in rpress_privacy_billing_information_exporter()

See also#

Was this page helpful?