Created
July 6, 2019 18:42
-
-
Save nomad411/4db81befd4339a3c0715752b2ae27d78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'fl_builder_render_css', function( $css, $nodes, $global_settings, $include_global ) { | |
$site_url = 'https://example.com'; | |
$cdn_url = 'https://123456abcdef.cloudfront.net'; | |
$css = str_replace( $site_url, $cdn_url, $css ); | |
return $css; | |
}, 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment