Last active
July 20, 2018 14:21
-
-
Save codehaiku/f6b6c9c9be6a671e937d3a856b4ad283 to your computer and use it in GitHub Desktop.
As part of https://dunhakdis.com/display-buddypress-members-directory-alphabetically blog post
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 | |
function my_bp_loop_querystring( $query_string, $object ) { | |
if ( ! empty( $query_string ) ) { | |
$query_string .= '&'; | |
} | |
$query_string .= 'type=alphabetical'; | |
return $query_string; | |
} | |
add_action( 'bp_ajax_querystring', 'my_bp_loop_querystring', 20, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment