738 posts
  • Author had a Free File of the Month
  • Grew a moustache for the Envato Movember competition
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Beta Tester
  • Microlancer Beta Tester
  • Bought between 50 and 99 items
  • Referred between 1 and 9 users
  • Has been a member for 1-2 years
+1 more
greenline says

I searched a lot for something like this and it helped me a lot improving my plugins, so I am sharing it with Wordpress Plugins developers: http://wp.tutsplus.com/articles/quick-tip-improving-shortcodes-with-the-has_shortcode-function/

1401 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Croatia
OriginalEXE says

Like someone posted in the comments section, I don’t like parsing the whole content, it looks slowish.

This methos seems much better: http://scribu.net/wordpress/optimal-script-loading.html

738 posts
  • Author had a Free File of the Month
  • Grew a moustache for the Envato Movember competition
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Beta Tester
  • Microlancer Beta Tester
  • Bought between 50 and 99 items
  • Referred between 1 and 9 users
  • Has been a member for 1-2 years
+1 more
greenline says

Indeed, the method you indicated is better, thanks for sharing it!

1574 posts Building the Web.
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Exclusive Author
  • Author had a File in an Envato Bundle
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Has been a member for 4-5 years
+2 more
ZoomIt says

Just write wp_enqueue_script inside the add_shortcode function, the script will get loaded at the end of the < body > if the shortcode has been called

All problems solved

by
by
by
by
by
by