bp_invite_sort_items( type $qv )
Sort list of invite post types.
Description
Parameters
- $qv
-
(Required)
Return
(string)
Source
File: bp-invites/bp-invites-admin.php
function bp_invite_sort_items( $qv ) { if( ! isset( $qv['post_type'] ) || $qv['post_type'] != bp_get_invite_post_type() ) return $qv; if( ! isset( $qv['orderby'] ) ) return $qv; switch( $qv['orderby'] ) { case 'inviter': $qv['meta_key'] = '_bp_invites_inviter_name'; $qv['orderby'] = 'meta_value'; break; case 'invitee_name': $qv['meta_key'] = '_bp_invites_invitee_name'; $qv['orderby'] = 'meta_value'; break; case 'invitee_email': $qv['meta_key'] = '_bp_invites_invitee_email'; $qv['orderby'] = 'meta_value'; break; case 'date_invited': $qv['meta_key'] = '_bp_invites_date_invited'; $qv['orderby'] = 'meta_value_num'; break; case 'status': $qv['meta_key'] = '_bp_invites_status'; $qv['orderby'] = 'meta_value_num'; break; } return $qv; }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.