I recently released a plugin, WP Coda Slider, that uses shortcodes to add a jQuery slider to any post or page. I am adding an options page in the next version and I would like to include some CSS options but I don't want the plugin to add the style choices as inline CSS. I want the choices to be dynamically added to the CSS file when it's called.
I would also like to avoid using fopen or writing to a file for security issues.
Is something like this easy to accomplish or would I be better off just adding the style choices directly to the page?
wp_enqueue_style()
(andwp_enqueue_script()
) with a function name instead of a filename and have my function generate the CSS (or JS) but still have it ultimately included via a linked stylesheet. As far as I know this isn't possible with thewp_equeue_*()
functions. Maybe we should submit a trac ticket?