Override asset URLs

mgibbs189

{{gist file=”functions.php” lang=”php”}}
<?php

add_filter( ‘facetwp_assets’, function( $assets ) {
foreach ( $assets as $key => $url ) {
$assets[ $key ] = s3_url_for( $url );
}
return $assets;
}, 999 );
{{/gist}}