Skip to content

Instantly share code, notes, and snippets.

@Pross
Created January 29, 2020 17:12
Show Gist options
  • Select an option

  • Save Pross/3dd37b8e2038fc8f7bd47014cdc92878 to your computer and use it in GitHub Desktop.

Select an option

Save Pross/3dd37b8e2038fc8f7bd47014cdc92878 to your computer and use it in GitHub Desktop.
add_filter( 'fl_builder_get_cache_dir', function( $dirinfo ){
if ( 'icons' === basename( $dirinfo['path'] ) ) {
$dirinfo['path'] = trailingslashit( get_stylesheet_directory() ) . 'icons/';
$dirinfo['url'] = trailingslashit( get_stylesheet_directory_uri() ) . 'icons/';
}
return $dirinfo;
});
@raptor235

Copy link
Copy Markdown

Yep I did that this morning and it worked well, just wanted to let you guys know because other people will have same issues if they're hosting with WPE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment