Action
rpress_fooditem_history_row_start
On this page
Fires at the start of each menu item row in the menu item history table.
Runs once per cart item of each order, inside the table row and before the item name cell. Callbacks should echo td cells to add a leading column.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$payment_id | int | ID of the order the item belongs to. |
$fooditem_id | int | ID of the menu item in the order's cart details. |
Example#
add_action( 'rpress_fooditem_history_row_start', 'my_history_row_start', 10, 2 );
function my_history_row_start( $payment_id, $fooditem_id ) {
echo '<td>#' . esc_html( rpress_get_payment_number( $payment_id ) ) . '</td>';
}
Source#
Fired from:
templates/history-fooditems.php(line 40)
See also#
Was this page helpful?
