I am trying to include a dynamic css in my plugin, I have been searching anywhere but doesn’t find any case that is similar to what I do. And what I use to do it is by adding a css file directly into the end of my plugin php file after the closing php tag ?>
without adding any other stuffs like calling wp head etc.
Here is the example of the code I put directly into the end of my plugin’s file:
<style type="text/css">
.innertrow { background-color: <?php get_options('css_value');?>}
</style>
Is that a good practice?