[buddypress-trac] [BuddyPress] #4855: Method to override a plugins use of plugins.php or add filters to bp_template_title and bp_template_content
buddypress-trac
noreply at wordpress.org
Sun Mar 3 00:11:45 UTC 2013
#4855: Method to override a plugins use of plugins.php or add filters to
bp_template_title and bp_template_content
-------------------------------------------+------------------------------
Reporter: modemlooper | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion reporter-feedback |
-------------------------------------------+------------------------------
Changes (by boonebgorges):
* keywords: 2nd-opinion => 2nd-opinion reporter-feedback
Comment:
> add filters to bp_template_title and bp_template_content?
`bp_template_title` and `bp_template_content` are just `do_action()`
hooks. Plugins display their content there by echoing out out (as you've
noted). If a plugin has not opted to put a filter on the output of these
callbacks before echoing it, there's nothing that BP can do about it.
If you want a slightly simpler way to do what you're trying to do, just
unhook the plugin's display functions using `remove_action()`. It looks
like bbPress (2.3-beta2) doesn't actually use plugins.php when displaying
content in groups, so there you'd have to find a different technique.
Is this enough of an answer? I'm not really clear what more BP could do.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4855#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list