Action
rpress_before_cart
Fires before the sidebar cart markup is printed.
Runs at the top of the sidebar cart template, before the cart wrapper element.
Example#
function my_before_cart() {
echo '<div class="my-cart-banner">' . esc_html__( 'Order before 9pm for same-day delivery.', 'my-textdomain' ) . '</div>';
}
add_action( 'rpress_before_cart', 'my_before_cart', 10, 0 );
Source#
Fired from:
templates/cart/cart.php(line 18)
See also#
Was this page helpful?
