Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save travislima/165fe9a6f49630f468e06335877ad2b3 to your computer and use it in GitHub Desktop.
Save travislima/165fe9a6f49630f468e06335877ad2b3 to your computer and use it in GitHub Desktop.
Add text before submit button in Paid Memberships Pro
<?php
/**
* Adds text before the submit button on the checkout page.
* Add this code below to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function add_text_before_submit() {
echo 'Hello! This will add some <a href="#" target="_blank">information</a> to your site for you.';
}
add_action( 'pmpro_checkout_before_submit_button', 'add_text_before_submit' );
@laurenhagan0306
Copy link

This recipe is included in the blog post on "Add text before the submit and Checkout button on the PMPro checkout page" at Paid Memberships Pro here: https://www.paidmembershipspro.com/add-text-before-the-submit-and-checkout-button-on-the-pmpro-checkout-page/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment