PHP code example of innocode-digital / wp-cdn
1. Go to this page and download the library: Download innocode-digital/wp-cdn library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
innocode-digital / wp-cdn example snippets
`
add_filter( 'innocode_cdn_should_replace_url', function ( $should_replace_url, $uri ) {
return $should_replace_url;
}, 10, 2 );
`
add_filter( 'innocode_cdn_extensions', function ( array $extensions ) {
return $extensions;
} );
`
add_filter( 'innocode_cdn_hosts', function ( array $hosts ) {
return $hosts;
} );