Forked from andrewlimaza/function_to_change_pmpro_donation_text.php
Last active
April 25, 2023 23:21
-
-
Save michaelbeil/21c81b3737d42292e9b94ed1fca8c9cc to your computer and use it in GitHub Desktop.
Function that changes 'Make a Gift' text - PMPRO Donations Add on
This file contains hidden or 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 = __( 'Make A Legislative Contributionn', 'pmpro-donations' ); //edit 'Make A Legislative Contribution' 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