WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #20509, comment 26


Ignore:
Timestamp:
04/25/12 12:32:00 (3 years ago)
Author:
chrisclayton
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20509, comment 26

    v1 v2  
    33 
    44While this will probably be completely different, from experience with BuddyPress (as JJJ mentioned, this idea is somewhat inspired by their plugins.php) not all plugin developers will add additional possible template names (i've seen afew BuddyPress plugins that won't check much further than plugins.php and without filtering (or using conditionals) it's impossible to give it a different look) 
     5 
     6Using your example they will do: 
     7{{{ 
     8add_action( 'generic_content', function() { 
     9  echo '<h1>My Plugin</h1>'; 
     10  echo 'my content'; 
     11} 
     12}}}