This quick snippet will show you how to add some custom text just before the purchase button at checkout.

The 1000 in the add_action function represents the priority. The Purchase Total that shows just before the purchase button has a priority of 999, so if you’d like your text to appear before that, change the priority to something lower.

Copy and paste the following function (mind the opening PHP tag) into your child theme’s functions.php or custom plugin.

One comment

Comments are closed.