Created
December 7, 2017 12:50
-
-
Save travislima/6ad1810dac38417733ef6d34502a50f4 to your computer and use it in GitHub Desktop.
Change "Invoice" to "Receipts"
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 | |
| /** | |
| * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext | |
| * A simple gist that changes "Invoice #:" to "Receipt #:" when printing an exsisting order. | |
| * Copy the code below into your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
| */ | |
| function my_pmpro_text_strings( $translated_text, $text, $domain ) { | |
| switch ( $translated_text ) { | |
| case 'Invoice #: ' : | |
| $translated_text = __( 'Receipt #: ', 'paid-memberships-pro' ); | |
| break; | |
| } | |
| return $translated_text; | |
| } | |
| add_filter( 'gettext', 'my_pmpro_text_strings', 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment