Last active
June 22, 2017 14:31
-
-
Save barrykooij/50667e461acba578f0b6573dc76e3a13 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
function dlm_modify_download_url( $url ) { | |
// todo modify your URL here | |
$url = str_ireplace( "://domain.com/download/", "://domain.com/index.php/download/", $url ); | |
return $url; | |
} | |
add_filter( "dlm_download_get_the_download_link", "dlm_modify_download_url" ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment