Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Change title of Membership Content in iThemes Exchange member's area
<?php
/*
------------------------------------------------------------------------------------------
Change Membership Content to Online Courses on membership content page
------------------------------------------------------------------------------------------
*/
function custom_exchange_membership_content_title( $translated_text ) {
if ( it_exchange_is_page() ) {
switch ( $translated_text ) {
case 'Membership Content' :
$translated_text = __( '', 'it-l10n-exchange-addon-membership' );
break;
}
}
return $translated_text;
}
add_filter( 'gettext', 'custom_exchange_membership_content_title', 20, 3 );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.