Skip to content

Instantly share code, notes, and snippets.

@andrewlimaza
Last active February 19, 2019 23:25
Show Gist options
  • Save andrewlimaza/c3b671bfd0a0177a4d85e14e9abd7566 to your computer and use it in GitHub Desktop.
Save andrewlimaza/c3b671bfd0a0177a4d85e14e9abd7566 to your computer and use it in GitHub Desktop.
Change class for PMPro Level Select button.
<?php
// Add this function to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
function change_pmpro_level_button_class() {
?>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('.pmpro_level-select a').attr('class', 'button'); //add 'button' class to level select buttons.
});
</script>
<?php
}
add_action( 'wp_footer', 'change_pmpro_level_button_class' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment