Adding content to the WooCommerce Checkout page is very easy.

All you need is to identify the position where you want to show your content (by using my WooCommerce Checkout Visual Hook Guide) and then create a short PHP function that prints on screen the content you need.

In this example, we will see how to add some content below the “Place Order” button on the WooCommerce Checkout page. This could be very helpful, for example, to print your GDPR-compliant Privacy Policy message and make sure the user is aware about the use of personal data.

Add content to the WooCommerce Checkout page

PHP Snippet: Add Content Under “Place Order” Button @ WooCommerce Checkout


/**
 * @snippet       Add Content Under "Place Order" Button @ WooCommerce Checkout
 * @how-to        Get CustomizeWoo.com FREE
 * @source        https://businessbloomer.com/?p=73864
 * @author        Rodolfo Melogli
 * @testedwith    Woo 3.5.1
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */

add_action( 'woocommerce_review_order_after_submit', 'bbloomer_privacy_message_below_checkout_button' );

function bbloomer_privacy_message_below_checkout_button() {
	echo '<p><small>Your personal data will help us create your account and to support your user experience throughout this website. Please have a look at our <a href="/privacy-policy" target=_blank">Privacy Policy</a> for more information on how we use your personal data</small></p>';
}

Share:

Leave a Reply