[buddypress-trac] [BuddyPress Trac] #8943: Group Extension using a function to set their tab visibility & the BP Rewrites API

buddypress-trac noreply at wordpress.org
Mon Jul 24 10:27:35 UTC 2023


#8943: Group Extension using a function to set their tab visibility & the BP
Rewrites API
-----------------------+---------------------
 Reporter:  imath      |       Owner:  imath
     Type:  task       |      Status:  closed
 Priority:  normal     |   Milestone:  12.0.0
Component:  Groups     |     Version:
 Severity:  normal     |  Resolution:  fixed
 Keywords:  has-patch  |
-----------------------+---------------------
Changes (by imath):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"13524" 13524]:
 {{{
 #!CommitTicketReference repository="" revision="13524"
 Improve the BP Rewrites API support of the Group Extension

 The `BP_Group_Extension::init()` $args parameter (array) now accepts a new
 argument: `$show_tab_callback`. You can use this argument to inform about
 the callback function to use to check whether the Extension group's tab
 should be displayed or not. This callback function is called inside  the
 `BP_Group_Extension::setup_access_settings()` to make sure to set the
 `$show_tab` argument once the current group has been defined by
 BuddyPress.

 Third party plugin authors are strongly encouraged to use this new
 argument if they used to define the `$show_tab` argument according to the
 result of a function. Doing so in BuddyPress 12.0.0 won't make your
 extension behave as expected.

 Fixes #8943
 Closes https://github.com/buddypress/buddypress/pull/136
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8943#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list