[wp-trac] [WordPress Trac] #21506: Standard Theme Hooks
WordPress Trac
wp-trac at lists.automattic.com
Mon Aug 20 17:46:26 UTC 2012
#21506: Standard Theme Hooks
---------------------------+------------------------------
Reporter: mfields | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: |
---------------------------+------------------------------
Comment (by greenshady):
Replying to [comment:24 kovshenin]:
> Replying to [comment:23 greenshady]:
>
> I'm okay with adding more hooks to the initially proposed list, but in
order to do so, we have to justify the hooks with use cases. We can't say
we need a `header_before` hook just because we have a `header_after` hook,
right?
I'd say wrong. We need that hook for the simple purposes of a wider
adoption rate by theme developers and to develop a standard. There really
is no standard if theme developers are having to create custom hooks to
match the "missing" hooks from WordPress.
---
Based on my experience with theme users:
Of the proposed list, the most commonly-used hook is `header_after`. If
adding the `*_before` equivalents, `header_before` would also be one of
the most commonly-used hooks. The others are not used quite as much by
users.
But, probably the most-used of all hooks in my themes would be the
equivalent of `content_before`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21506#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list