Skip to:
Content

BuddyPress.org

Changes between Version 1 and Version 2 of Ticket #4767, comment 1


Ignore:
Timestamp:
01/14/2013 07:07:58 PM (11 years ago)
Author:
johnjamesjacoby
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4767, comment 1

    v1 v2  
    1 A good question. Right now, when bp_template_content gets called, BuddyPress's theme compat filter should not be hooked in, or at least fail. Consider also that plugin.php is a specific template that should only get included when no other BuddyPress core template is requested, which is to say that some other plugin manually requested it.
     1A good question. Remember that plugins.php uses 'bp_template_content', not 'the_content.'
     2
     3When the_content gets called, BuddyPress's theme compat filter should not be hooked in, or at least fail. Consider also that plugin.php is a specific template that should only get included when no other BuddyPress core template is requested, which is to say that some other plugin manually requested it.
    24
    35The method is not unlike what it was before, and similar to the template loader.
    46
    5 * Conditionally hook to bp_template_content.
     7* Conditionally hook to bp_template_content or the_content, based on your needs I suppose.
    68* Check for some conditions to make sure they match.
    79* If they match, pull in a template part, include a file, etc...