Action
rpress_checkout_table_body_first
On this page
Fires at the start of each cart item row in the checkout cart table.
Runs for every cart item row, inside the tr element and before the item name cell.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$item | array | The cart item, with keys such as id (the menu item ID), options, price_id and instruction. |
Example#
function my_checkout_row_first( $item ) {
echo '<td class="my-item-id">' . absint( $item['id'] ) . '</td>';
}
add_action( 'rpress_checkout_table_body_first', 'my_checkout_row_first', 10, 1 );
Notes#
The name cell uses colspan 3, so extra cells can change the table layout.
Source#
Fired from:
templates/checkout_cart.php(line 43)
See also#
Was this page helpful?
