Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andrewlimaza/86f15deb4b94319839bf0438cf29cc3f to your computer and use it in GitHub Desktop.
Save andrewlimaza/86f15deb4b94319839bf0438cf29cc3f to your computer and use it in GitHub Desktop.
Function that changes 'Make a Gift' text - PMPRO Donations Add on
<?php
/*
This function simply edits the text 'Make a Gift' for PMPRO Donations Add-On
Please paste this function in your functions.php or custom plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function pmpro_donations_change_text( $change_text, $text, $domain ) {
switch ( $change_text ) {
case 'Make a Gift' :
$change_text = __( 'This will change Make A Gift', 'pmpro-donations' ); //edit 'This will change Make A Gift' to edit the text output of 'Make a Gift'
break;
}
return $change_text;
}
add_filter( 'gettext', 'pmpro_donations_change_text', 20, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment