Action
rpress_checkout_table_body_last
On this page
Fires at the end of each cart item row in the checkout cart table.
Runs for every cart item row after the item name cell, still inside the tr element.
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_last( $item ) {
echo '<td class="my-item-sku">' . esc_html( get_post_meta( $item['id'], 'my_sku', true ) ) . '</td>';
}
add_action( 'rpress_checkout_table_body_last', 'my_checkout_row_last', 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 114)
See also#
Was this page helpful?
