Forked from LMNTL/pmpro_gettext_membership_options.php
Last active
November 7, 2019 10:40
-
-
Save ipokkel/c077ca6b8cbf1cd54802e1814a49639b to your computer and use it in GitHub Desktop.
Hide "View all Membership Options" link on PMPro Account page
This file contains 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 //Do NOT copy this line | |
/* Hide "View all Membership Options" link */ | |
add_filter( 'gettext', 'my_gettext_pmpro_hide_view_membership_options', 10, 3 ); | |
function my_gettext_pmpro_hide_view_membership_options( $translated_text, $text, $domain ) { | |
if ( $pmpro_pages['account'] && 'paid-memberships-pro' == $domain && 'View all Membership Options' == $text ) { | |
$translated_text = ''; | |
} | |
return $translated_text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment