Filter
rpress_privacy_order_details_item
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#
| Parameter | Type | Description |
|---|---|---|
$data_points | array | List of arrays with 'name' and 'value'. |
$payment | RPRESS_Payment | The 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), inrpress_privacy_billing_information_exporter()
See also#
Was this page helpful?
