Home » WooCommerce: Add Content Under “Place Order” Button @ Checkout

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

by Tutor Aspire

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 tutoraspire.com FREE
 * @source        https://tutoraspire.com/?p=73864
 * @author        Tutor Aspire
 * @testedwith    Woo 3.5.1
 * @donate $9     https://www.tutoraspire.com
 */

add_action( 'woocommerce_review_order_after_submit', 'tutoraspire_privacy_message_below_checkout_button' );

function tutoraspire_privacy_message_below_checkout_button() {
echo '

Your personal data will help us create your account and to support your user experience throughout this website. Please have a look at our Privacy Policy for more information on how we use your personal data

'; }

You may also like