Filter
rpress_view_service_details_before
On this page
Fires before the service fields in the edit panel of the order details screen.
Called with apply_filters() inside the Service edit panel of the order details screen, before the service type, date and time fields. The return value is discarded, so it behaves like an action: a callback can echo extra fields and should return the value it received.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$payment_id | int | ID of the order (payment) being viewed. |
Return value#
int. The unchanged order ID. The value is ignored by the caller.
Example#
function my_service_fields_before( $payment_id ) {
echo '<p><strong>Table pager no.</strong> ' . esc_html( get_post_meta( $payment_id, '_my_pager_no', true ) ) . '</p>';
return $payment_id;
}
add_filter( 'rpress_view_service_details_before', 'my_service_fields_before', 10, 1 );
Notes#
Registered as a filter but the result is not used. Hook it with add_filter() and return the first argument.
Source#
Applied in:
includes/admin/payments/view-order-details.php(line 1007)
See also#
Was this page helpful?
