Created
April 4, 2024 15:08
-
-
Save MadCowWeb/bd7ae218864ddc0d850c079e89db4970 to your computer and use it in GitHub Desktop.
Add custom content to cart and checkout pages with an action hook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ADD BANNER TO CART PAGE | |
add_action('woocommerce_before_cart', 'madcow_above_cart_and_checkout_message'); | |
add_action('woocommerce_after_order_notes', 'madcow_above_cart_and_checkout_message'); | |
function madcow_above_cart_and_checkout_message() { | |
echo 'your-content-here'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment