Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Buddypress - Remove "All members" on Members directory ( javascript trick )

View remove_all_members_tab.php
1 2 3 4 5 6 7 8 9 10 11 12 13
//add this code to functions.php
function bp_remove_allmembers_tab_js_script(){ ?>
<script type="text/javascript">
var jq = jQuery;
jQuery(document).ready(function (jQuery) {
jq('#members-all').removeClass('selected').hide();
jq('#members-personal').find('a').trigger('click');
});
</script>
<?php }
add_action('wp_footer', 'bp_remove_allmembers_tab_js_script');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.