Last active
April 8, 2022 19:35
-
-
Save andrewlimaza/86f15deb4b94319839bf0438cf29cc3f to your computer and use it in GitHub Desktop.
Function that changes 'Make a Gift' text - PMPRO Donations Add on
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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