A simple, powerful and independent e-commerce platform.
Sell anything with ease.

Add custom message at payment button

This code lets you add a custom message at the final payment button. This could be a privacy statement, or some instructions about the sale process. You may need to add some css to style this message to suit your site.

/**
 * Add custom message at payment button
 */

add_action('woocommerce_review_order_after_submit', 'cc_custom_message_at_payment_button');
 
function cc_custom_message_at_payment_button() {

  echo '<p>Please look at our <a href="/privacy-policy" target=_blank">Privacy Policy</a> for more information on how we use your personal data.</p>';

}
View Raw Code ID: 912