[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
Sun Jul 23 16:25:04 UTC 2023


#8943: Group Extension using a function to set their tab visibility & the BP
Rewrites API
--------------------+-------------------------
 Reporter:  imath   |      Owner:  imath
     Type:  task    |     Status:  assigned
 Priority:  normal  |  Milestone:  12.0.0
Component:  Groups  |    Version:
 Severity:  normal  |   Keywords:  needs-patch
--------------------+-------------------------
 Working on making bbPress ready for 12.0, I realized the way the
 `$show_tab_callback` property added to the `BP_Group_Extension` class
 during the Rewrites migrate process (see #4954) was wrong.

 Plugins extending `BP_Group_Extension` & using a function to set their
 `$show_tab` argument will now need to use the `$show_tab_callback` arg
 instead when initing their extension using `parent::init( `$args` )`.

 A function callback needs to be passed within this `$show_tab_callback` so
 that it is called once the current/displayed Groups single item is defined
 by BuddyPress.

 This wasn't necessary in previous versions of BuddyPress because this
 single item was defined very early.

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


More information about the buddypress-trac mailing list