Scripts Organizer

Regenerate hook for external CSS files

The code is a filter hook that gets fired whenever a SCSS, CSS, or JS file is generated by SCORG or SCORG ACF. This allows users, for example, to fetch the contents of a CSS file and then pass the extracted classes to other plugins.

Code example

    * function has three paramters
    * $post_id, $code_file_url, $extension
    * $post_id will have saved code block ID in it
    * $code_file_url will have complete URL to the generated file
    * $extnesion will have type of file like scss, css, js
    function override_SCORG_generated_file_url($post_id, $code_file_url, $extension)

        // write your code here

    add_action('SCORG_generated_file_url', 'override_SCORG_generated_file_url', 10, 3);

Table of Contents