I am trying to send values set in a plugin I have written to the plugin's attached style sheet.
I have used the enque to get the stylesheet included in plugin, it works perfectly. I can see it adding the stylesheet to the wp head.
My style sheet is named style.php and I have added
<?php header("Content-type: text/css"); ?>
If I add css below this it works, but when I try to fetch one of the variables set in the plugin options, it displays the css but with blank values.
I have tried a whole lot of tutorials that I fond but none of them work , they all end up giving fatal errors.
The plugin data is being saved in the wp_options table under " text-widget-styler".
Could someone please point me in the right direction to fetch the values from the db and display them in my .php stylesheet.