bp_activity_filter_public_scope( array $retval = array(), array $filter = array() )
Set up activity arguments for use with the ‘public’ scope.
Description
Parameters
- $retval
-
(Optional) Empty array by default.
Default value: array()
- $filter
-
(Optional) Current activity arguments.
Default value: array()
Return
(array) $retval
Source
File: bp-activity/bp-activity-filters.php
981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 | function bp_activity_filter_public_scope( $retval = array (), $filter = array () ) { $privacy = array ( 'public' ); if ( bp_loggedin_user_id() ) { $privacy [] = 'loggedin' ; } $retval = array ( 'relation' => 'AND' , array ( 'column' => 'privacy' , 'value' => $privacy , 'compare' => 'IN' , ), array ( 'column' => 'hide_sitewide' , 'value' => 0, ) ); return $retval ; } |
Changelog
Version | Description |
---|---|
BuddyBoss 1.4.3 | 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.