<div dir="ltr">Thanks Justin. :)</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 17 July 2014 21:41, Justin Tadlock <span dir="ltr"><<a href="mailto:justin@justintadlock.com" target="_blank">justin@justintadlock.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I covered this in my theme functions file tutorial:<div><a href="http://justintadlock.com/archives/2010/12/30/wordpress-theme-function-files" target="_blank">http://justintadlock.com/archives/2010/12/30/wordpress-theme-function-files</a><br>


</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Thu, Jul 17, 2014 at 2:34 PM, Ulrich Pogson <span dir="ltr"><<a href="mailto:grapplerulrich@gmail.com" target="_blank">grapplerulrich@gmail.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hey.<div><br></div><div>Chip has mentioned this a few times:<br><div><div>

<br></div><div>"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)"<br>




</div></div></div><div><br></div><div>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.</div><div><br></div><div>Also is this mentioned somewhere in the guidelines.</div>




<div><br></div><div>Thanks,</div></div>
<br></div></div>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>