[wp-hackers] checking if post has shortcode,	before header is output?
    Kevin Newman 
    CaptainN at unFocus.com
       
    Fri Oct 23 21:57:30 UTC 2009
    
    
  
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.
    
    
More information about the wp-hackers
mailing list