Skip to content

Instantly share code, notes, and snippets.

@andrewlimaza
Created December 31, 2024 07:28
Show Gist options
  • Save andrewlimaza/af7d69e0faee1cc4ce2555ff1a23f95a to your computer and use it in GitHub Desktop.
Save andrewlimaza/af7d69e0faee1cc4ce2555ff1a23f95a to your computer and use it in GitHub Desktop.
Add small notice above submit button that charges are in USD for Paid Memberships Pro
<?php
/**
* Add a small message above the submit button at checkout that charges will be done in USD.
* To add this code to your site, please follow this guide - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function my_pmpro_add_message_before_submit_button() {
echo "<em>Please note that all charges will be processed in USD (United States Dollars).</em>";
}
add_action( 'pmpro_checkout_before_submit_button', 'my_pmpro_add_message_before_submit_button' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment