Created
October 7, 2016 15:53
-
-
Save mgibbs189/cc42517b5edf61e40664c677e7c17e34 to your computer and use it in GitHub Desktop.
Override asset URLs
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
<?php | |
add_filter( 'facetwp_assets', function( $assets ) { | |
foreach ( $assets as $key => $url ) { | |
$assets[ $key ] = s3_url_for( $url ); | |
} | |
return $assets; | |
}, 999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment