[theme-reviewers] Function calls
grapplerulrich at gmail.com
Thu Jul 17 20:26:40 UTC 2014
Thanks Justin. :)
On 17 July 2014 21:41, Justin Tadlock <justin at justintadlock.com> wrote:
> I covered this in my theme functions file tutorial:
> On Thu, Jul 17, 2014 at 2:34 PM, Ulrich Pogson <grapplerulrich at gmail.com>
>> 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
>> Also is this mentioned somewhere in the guidelines.
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the theme-reviewers