Skip to content

Instantly share code, notes, and snippets.

@barrykooij
Last active June 22, 2017 14:31
Show Gist options
  • Save barrykooij/50667e461acba578f0b6573dc76e3a13 to your computer and use it in GitHub Desktop.
Save barrykooij/50667e461acba578f0b6573dc76e3a13 to your computer and use it in GitHub Desktop.
<?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