Created
December 13, 2022 17:54
-
-
Save dparker1005/0fde1c717a5a08ddbac84ab27d4b3f7a to your computer and use it in GitHub Desktop.
Hide default member badges. Useful if some of your levels should not show badges.
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 | |
// Copy from below here... | |
/** | |
* Hide default member badges. Useful if some of your levels should not show badges. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function my_pmpromb_hide_default_badges(){ | |
?> | |
<style> | |
img[src*="wp-content/plugins/pmpro-member-badges/images/member"] { | |
display: none; | |
} | |
</style> | |
<?php | |
} | |
add_action( 'wp_footer', 'my_pmpromb_hide_default_badges' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment