Created
May 30, 2020 15:53
-
-
Save ideadude/da6fd143cab4600d7ec204fe4cc918d6 to your computer and use it in GitHub Desktop.
Swap the word Membership with Access in the PMPro expiration text.
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 | |
| /** | |
| * Swap the word Membership with Access in the PMPro expiration text. | |
| * Add this through a code snippet or custom plugin. | |
| */ | |
| function my_custom_level_expiration_text( $expiration_text, $level ) { | |
| $expiration_text = str_replace( 'Membership', 'Access', $expiration_text ); | |
| return $expiration_text; | |
| } | |
| add_filter('pmpro_level_expiration_text', 'my_custom_level_expiration_text', 20, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment