[wp-hackers] checking if post has shortcode, before header is output?

Kevin Newman CaptainN at unFocus.com
Mon Oct 26 20:50:10 UTC 2009

I ended up putting it in the body. This just makes too much sense (and 
is easy, compared with everything else, which is hard).

Kevin N.

On 10/26/09 4:30 PM, Ken Newman wrote:
> In HTML 5, the <style> element being using in the body is valid if you 
> use the "scoped" attribute :)
> http://www.w3schools.com/html5/tag_style.asp
> --------------------------------------------------
> From: "Kevin Newman" <CaptainN at unFocus.com>
>> Hello,
>> Is there anyway to check if there your registered shortcode (for a 
>> plugin) is being used in the current post, during some action hook 
>> before the header is output? The idea would be to include CSS and JS 
>> files for the shortcode, only on pages that actually use the 
>> shortcode. I'm doing it inline right now, since wp_enqueue_script is 
>> not available where the shortcode is dealt with.
>> Thanks,
>> Kevin N.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list