BP_Nouveau_Group_Invite_Query::get_inviter_ids( $user_id, $group_id )
Description
Source
File: bp-templates/bp-nouveau/includes/groups/classes.php
public static function get_inviter_ids( $user_id = 0, $group_id = 0 ) { global $wpdb; if ( empty( $group_id ) || empty( $user_id ) ) { return array(); } $bp = buddypress(); return $wpdb->get_col( $wpdb->prepare( "SELECT inviter_id FROM {$bp->groups->table_name_members} WHERE user_id = %d AND group_id = %d", $user_id, $group_id ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 3.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.