Ticket #1730 (closed enhancement: fixed)

Opened 4 weeks ago

Last modified 4 weeks ago

Allow for unhooking of actions in bbPress class

Reported by: johnjamesjacoby Owned by: johnjamesjacoby
Priority: normal Milestone: 2.1
Component: Administration Version: 2.0
Severity: normal Keywords:
Cc:

Description

It's currently impossible to unhook any of the bbPress class's actions. Even though they are public, they are not static and rely on the use of:

add_action( 'foo', array( $this, 'method' ) );

The problem is the use of $this. Only the bbPress object is aware what $this is. Plugins that may want to unhook or replace certain core functionality cannot manipulate them. A new action that passes $this should do the trick.

Change History

  • Status changed from new to closed
  • Resolution set to fixed

(In [3692]) Add 'bbp_after_setup_actions' action to bbPress::setup_actions() to allow class actions to be manipulated. Fixes #1730.

Note: See TracTickets for help on using tickets.