I am trying to add content below the cart items and above the 'Apply Coupon' and 'Update Cart' buttons.
I am using the action hook woocommerce_cart_contents
.
add_action('woocommerce_cart_contents', 'add_content');
function add_content(){
echo 'The content';
}
The echoed text is being displayed above the cart table.
I have tested this on two different websites and found the same issue. Any idea where I am going wrong?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.