Created
December 1, 2016 19:30
-
-
Save Pross/9b7235cf6404ce46b8684be0f9dd9c1f 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
<?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