[wp-trac] [WordPress Trac] #22355: Template stack - Beyond parent/child theme relationships
WordPress Trac
noreply at wordpress.org
Sat Nov 3 23:08:13 UTC 2012
#22355: Template stack - Beyond parent/child theme relationships
-----------------------------+------------------------------
Reporter: johnjamesjacoby | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-----------------------------+------------------------------
Comment (by johnjamesjacoby):
Replying to [comment:10 scribu]:
> A usage example from start to finish would be helpful.
Imagine a plugin registers a custom post type 'foo' and wants to bundle
templates for twentytwelve support. This plugin would:
* Call: register_theme_stack( 'my_plugin_twentytwelve_template_path', 10
);
* Now, /plugins/my-foo/twentytwelve/single-foo.php is in the stack.
* locate_template() finds a match in the plugin directory.
* Profit.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22355#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list