[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
Wed Mar 6 18:25:47 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: defect (bug) | Status: reopened
Priority: normal | Milestone: 1.7
Component: Theme | Version: 1.7
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+-----------------------
Comment (by r-a-y):
> I'm curious to see how you're loading the template.
With `02.patch`, I'm loading the template the same way as always:
`bp_core_load_template( 'members/single/plugins' );`
This supports bp-default themes.
When theme compat is on, `/wp-content/themes/YOUR-
THEME/members/single/plugins.php` will not exist and bp-legacy will kick
in and load `bp-templates/bp-legacy/buddypress/members/single/home.php`.
`bp-templates/bp-legacy/buddypress/members/single/home.php` will load up
the plugins.php template part on a non-core template.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4855#comment:23>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list