[theme-reviewers] Hooking wp_enqueue_script( 'comment-reply' ) into wp_head

Otto otto at ottodestruct.com
Thu Apr 21 19:39:43 UTC 2011


On Thu, Apr 21, 2011 at 2:32 PM, Edward Caissie
<edward.caissie at gmail.com> wrote:
> Could the function be added to the one(s) used with the 'after_setup_theme'
> filter?
>
> 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 ...

No, the query isn't set up by that point in time. You have to wait
until after init to use any of the is_singular() or similar functions.

-Otto


More information about the theme-reviewers mailing list