[buddypress-trac] [BuddyPress Trac] #8146: bp_get_group_is_public() always returns NULL
buddypress-trac
noreply at wordpress.org
Thu Oct 17 17:36:38 UTC 2019
#8146: bp_get_group_is_public() always returns NULL
---------------------------+---------------------
Reporter: mattjones2207 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.0.0
Component: Groups | Version: 1.0
Severity: normal | Resolution:
Keywords: needs-patch |
---------------------------+---------------------
Changes (by imath):
* keywords: => needs-patch
* version: 5.0.0 => 1.0
* milestone: Awaiting Review => 6.0.0
Comment:
Hi @mattjones2207
Thanks for your feedback. There's a comment inside some of these functions
saying there are not used anymore. But I agree we should deprecate them
asap.
To get the group status from within a groups loop, you can use
`bp_get_group_status( $group )` to know if it's a public one you should be
able to do `'public' === bp_get_group_status( $group )`
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8146#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list