Skip to content
Docs
Get RestroPress

Action

rpress_view_order_details_files_after

Updated
On this page

Fires after the order items section and before the notes box on the order details screen.

Runs in the main column of the order details screen, after the order items section and its item editing modal, and before the order notes box. The name is a legacy of the original downloadable-files section. Output is echoed directly.

Parameters#

ParameterTypeDescription
$payment_idintID of the order (payment) being viewed.

Example#

function my_after_order_items( $payment_id ) {
	$payment = new RPRESS_Payment( $payment_id );
	echo '<p>Items on this order: ' . count( (array) $payment->cart_details ) . '</p>';
}
add_action( 'rpress_view_order_details_files_after', 'my_after_order_items', 10, 1 );

Source#

Fired from:

  • includes/admin/payments/view-order-details.php (line 1792)

See also#

Was this page helpful?