Skip to content

Instantly share code, notes, and snippets.

@BeyondTheLoop
Created August 21, 2021 02:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BeyondTheLoop/c99d8420ae9253dbc3a814333b62954e to your computer and use it in GitHub Desktop.
Save BeyondTheLoop/c99d8420ae9253dbc3a814333b62954e to your computer and use it in GitHub Desktop.
Enfold - Filter to skip css file generation
/**
* Filter to skip css file generation.
* You can add logic to skip for certain pages/posts only.
*
* @since 4.8.6.1
* @param boolean $create
* @return boolean true | false or anything else to skip generation of css file
*/
function custom_avf_post_css_create_file( $create )
{
return false;
}
add_filter( 'avf_post_css_create_file', 'custom_avf_post_css_create_file', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment