Last active
November 7, 2019 09:56
-
-
Save LMNTL/4378754228df737135266ac27dc29e8a 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
function my_gettext_pmpro_hide_view_membership_options($translated_text, $text, $domain) | |
{ | |
if($domain == "paid-memberships-pro" && $text == "View all Membership Options" ) | |
$translated_text = ""; | |
return $translated_text; | |
} | |
add_filter('gettext', 'my_gettext_pmpro_hide_view_membership_options', 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment