Skip to content

Instantly share code, notes, and snippets.

@andrewlimaza
Created July 23, 2018 08:28
Show Gist options
  • Save andrewlimaza/c4a78eed876f36ac10e53b89a219f204 to your computer and use it in GitHub Desktop.
Save andrewlimaza/c4a78eed876f36ac10e53b89a219f204 to your computer and use it in GitHub Desktop.
Change 'Not Paying.' to 'Paying.' for Paid Memberships Pro.
<?php
/**
* Changes 'Not Paying.' to 'Paying.' inside Paid Memberships Pro.
* Add this code to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function change_not_paying_to_paying_pmpro( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Not Paying.' :
$translated_text = __( 'Paying.', 'paid-memberships-pro' );
break;
}
return $translated_text;
}
add_filter( 'gettext', 'change_not_paying_to_paying_pmpro', 20, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment