Start typing to search...

Empty Download Request Redirection

Since Download Monitor 1.9.7 we’re redirecting empty download request to the homepage. You can disable this with the dlm_empty_download_redirect_enabled filter. An example of how to do this:

PHP
<strong>function</strong> <strong>dlm_disable_empty_download_redirect</strong>( $b ) {
	<strong>return</strong> <strong>false</strong>;
}
add_filter( 'dlm_empty_download_redirect_enabled', 'dlm_disable_empty_download_redirect' );

By default, we redirect the user to your homepage. You change this page with the dlm_empty_download_redirect_url filter. An example on how to do this:

PHP
<strong>function</strong> <strong>dlm_custom_empty_download_redirect_url</strong>( $s ) {
	<strong>return</strong> site_url('no-access');
}
add_filter( 'dlm_empty_download_redirect_url', 'dlm_custom_empty_download_redirect_url' );

The above snippet sends the user to your No Access page.

Was this page helpful?
0 0
Start Protecting your WordPress Downloads

Protect and track downloads on WordPress... What are you waiting for?