[buddypress-trac] [BuddyPress Trac] #7872: Errors with add_filter('bp_groups_default_extension', ... in BP 3.0

buddypress-trac noreply at wordpress.org
Fri May 25 18:08:03 UTC 2018


#7872: Errors with add_filter('bp_groups_default_extension',... in BP 3.0
--------------------------+-------------------------
 Reporter:  gcmaryland    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Groups        |     Version:
 Severity:  normal        |  Resolution:  worksforme
 Keywords:                |
--------------------------+-------------------------

Comment (by gcmaryland):

 Thanks @r-a-y! I think I've found the issue. I believe that many of these
 plug-ins were running add_filter('bp_groups_default_extension', when they
 were really attempting to use add_action( 'bp_include',. I've updated
 several of these to use the action instead of a filter, and it's working
 like a charm with zero errors in debug.

 I'd greatly appreciate a confirmation if this is correct, as I have
 numerous plug-ins across our networks that are all using this code.
 Strangely enough, the plug-ins using that filter never changed the
 homepage, but rather actually create sub nav items. If this is correct,
 I'll notify authors and link them to this thread. Thanks so much for your
 help!

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


More information about the buddypress-trac mailing list