[theme-reviewers] functions.php best practices and after_setup_theme
Edward Caissie
edward.caissie at gmail.com
Tue Nov 6 19:20:21 UTC 2012
Hooking into the appropriate filter or action is more best practice than
anything else, in most cases; but, to give a more concise opinion specific
examples would need to be reviewed.
Cais.
On Tue, Nov 6, 2012 at 12:59 PM, Kirk Wight <kwight at kwight.ca> wrote:
> Hi all,
>
> I have it in my head that we require all functions in functions.php be
> hooked to the appropriate action or filter (except setting $content_width
> stuff), but don't see it in the guidelines.
>
> Do we just mention this as best practice, but allow it otherwise?
> Technically, I can't see it making a difference for setup stuff;
> after_theme_setup fires immediately after functions.php gets loaded anyways
> (but perhaps that cuts in line for plugin or core stuff that might be
> hooked to after_theme_setup?..).
>
> Thoughts?
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20121106/59071a04/attachment.htm>
More information about the theme-reviewers
mailing list