• Why is the plugin writing to custom.css every time the shortcode is executed?

    The following code is duplicated:

    $myFile = dirname(__FILE__) . '/css/custom.css';
    $fh = @fopen($myFile, 'w+');
    @fwrite($fh, $options[SCBB_DEFAULT_CUSTOM_CSS_NAME]);
    @fclose($fh);

    I moved it into the scbb_page without issue. I also call scbb_custom_styles each time to ensure colors can be overridden.

    https://wordpress.org/plugins/standout-color-boxes-and-buttons/

  • The topic ‘Prevent writing custom.css each load’ is closed to new replies.