New question about the same problem. Trying to use a php stylesheet with custom wordpress setting in it. But once I add
$myoptions = get_option( 'option_name' );
into this header
<?php
header("Content-type: text/css; charset: UTF-8");
$myoptions = get_option( 'custom_ads' );
?>
stylesheet goes error 500.
And this is the error I get in the error log
PHP Fatal error: Uncaught Error: Call to undefined function get_option() in /nas/content/live/adsplugintest/wp-content/plugins/custom-ads-plugin/styles.php:11\nStack trace:\n#0 {main}\n thrown in /nas/content/live/adsplugintest/wp-content/plugins/custom-ads-plugin/styles.php on line 11, referer: domain.com/wp-includes/options.php/
Call to undefined function get_optionthat's the problem. what's unclear about it? - user9487972