Skip to content

Instantly share code, notes, and snippets.

@Pross
Created December 1, 2016 19:30
Show Gist options
  • Save Pross/9b7235cf6404ce46b8684be0f9dd9c1f to your computer and use it in GitHub Desktop.
Save Pross/9b7235cf6404ce46b8684be0f9dd9c1f to your computer and use it in GitHub Desktop.
<?php
class Sasha_pl_uploads_url {
function __construct() {
add_filter( 'pl_uploads_url', array( $this, 'filter' ) );
}
function filter( $url ) {
return 'http://my.cdn.url/wp-content/uploads';
}
}
new Sasha_pl_uploads_url();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment