Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function members_alpha_by_default( $query_string ) {
- global $bp;
- if ( $bp->current_component == BP_MEMBERS_SLUG && !$bp->current_action)
- $query_string .= 'type=alphabetical&action=alphabetical';//append this
- return $query_string;
- }
- add_filter( 'bp_dtheme_ajax_querystring', 'members_alpha_by_default',50 );//change priority
Add Comment
Please, Sign In to add comment