[theme-reviewers] Function calls

Ulrich Pogson 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:
> 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
>>
>>
>
> _______________________________________________
> 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/87d15701/attachment.html>


More information about the theme-reviewers mailing list