Timeline for Plugin and javascript placement
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 23, 2014 at 19:43 | vote | accept | Toniq | ||
Jan 23, 2014 at 6:24 | comment | added | Toniq | Is it a bad practice to use wp_enqueue_style and wp_enqueue_script in shortcode? I am asking this because in some situations, lets say I have 10 different css versions of my plugin, so if I wanted to use wp_enqueue_style before shortcode runs, I would need to enqueue them all even if I would use just one. Another situation would be if I need to apply same css styles but with different id for each plugin, so I need to write css file on runtime. (like #some_id .some_class_name) | |
Jan 23, 2014 at 4:44 | history | edited | kosinix | CC BY-SA 3.0 |
Expanded answer to address the asker's requirements and questions
|
Jan 23, 2014 at 4:27 | history | answered | kosinix | CC BY-SA 3.0 |