bp_nouveau_object_template_results_members_following_scope( $querystring, $object )
Object template results members following scope.
Description
Source
File: bp-templates/bp-nouveau/includes/ajax.php
function bp_nouveau_object_template_results_members_following_scope( $querystring ) {
$querystring = wp_parse_args( $querystring );
$args = array(
'user_id' => ( bp_displayed_user_id() ) ? bp_displayed_user_id() : bp_loggedin_user_id(),
);
$following_comma_separated_string = bp_get_following_ids( $args );
$querystring['include'] = $following_comma_separated_string;
$querystring['scope'] = 'following';
$querystring['page'] = 1;
$querystring['per_page'] = '1';
if ( isset( $querystring['user_id'] ) && ! empty( $querystring['user_id'] ) ) {
unset( $querystring['user_id'] );
}
return http_build_query( $querystring );
}
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.