[theme-reviewers] Function calls

Justin Tadlock justin at justintadlock.com
Thu Jul 17 19:41:41 UTC 2014


I covered this in my theme functions file tutorial:
http://justintadlock.com/archives/2010/12/30/wordpress-theme-function-files


On Thu, Jul 17, 2014 at 2:34 PM, Ulrich Pogson <grapplerulrich at gmail.com>
wrote:

> Hey.
>
> Chip has mentioned this a few times:
>
> "Function calls in functions.php must be placed inside callbacks and
> hooked into appropriate actions (such as after_setup_theme for Theme setup
> functions, or widgets_init for Widgets/dynamic sidebar functions)"
>
> I think I understand why this is best practice but is there an
> post/article explaining why it is best practice so that I can share with
> others.
>
> Also is this mentioned somewhere in the guidelines.
>
> Thanks,
>
> _______________________________________________
> 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/20140717/0f46c225/attachment.html>


More information about the theme-reviewers mailing list