Could the function be added to the one(s) used with the &#39;after_setup_theme&#39; filter?<br><br>Perhaps not the most correct as suggested by Otto; I asking more to get a better understanding of filters and actions which are still elusive at times for me ...<br>

<br><br>Cais.<br><br><div class="gmail_quote">On Thu, Apr 21, 2011 at 3:26 PM, Otto <span dir="ltr">&lt;<a href="mailto:otto@ottodestruct.com">otto@ottodestruct.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

On Thu, Apr 21, 2011 at 2:07 PM, Chip Bennett &lt;<a href="mailto:chip@chipbennett.net">chip@chipbennett.net</a>&gt; wrote:<br>
&gt; ... and we have to hook into the process both<br>
&gt; *before* wp_enqueue_scripts fires...<br>
<br>
Sorry, missed this reply earlier.<br>
<br>
Short answer: No, you don&#39;t. I can think of no reason to enqueue a<br>
script before wp_enqueue_scripts fires. The wp_enqueue_scripts is the<br>
proper time to enqueue a script (and a style too, for that matter).<br>
That is the only reason it exists at all.<br>
<br>
You have to enqueue styles and scripts before wp_print_styles and<br>
wp_print_head_scripts fire, which are both hooked to wp_head with<br>
priorities of 8 and 9, respectively. Therefore, enqueuing at<br>
wp_enqueue_scripts, which has an effective priority of 1, is the<br>
correct thing to do.<br>
<font color="#888888"><br>
-Otto<br>
</font><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br>