I have a question I would like to ask to the WordPress developers,
Usually when creating a shortcode that need to generate custom css how do you proceed?
For example a simple button shortcode with the following options :
- text color
- background color
- hover text color
- hover background color
The problem is the hover color option, I would like to generate it dynamically directly to a css file without having to put any custom css in the head or inlineblock in the page.
The shortcode need of course to be able to be used several time in the same page.
I am thinking about using wp_add_inline_style or wp_filesystem.
Any advice would be awesome.