Solved this myself by copying the code you use in wpdm-functions.php function wpdm_logout_url so my finalised code for my custom function is:
/* ADD NONCE TO LOGOUT LINK */
function change_menu($items){
foreach($items as $item){
if( $item->title == "Logout"){
$item->url = $item->url . "=" . wp_create_nonce(NONCE_KEY);
}
}
return $items;
}
add_filter('wp_nav_menu_objects', 'change_menu');
Where the change was from
$item->url = $item->url . "=" . wp_create_nonce( 'login' );
TO
$item->url = $item->url . "=" . wp_create_nonce(NONCE_KEY);
For anyone interested in having TWO wordpress menus – one for logged in ( named logged-in ) and one for logged out ( named logged-out ) that switch when you are logged in or not PLUS having a Logout Link that behaves just like the WPDM logout links AND the ability to display login text messages to people not logged in, the three adds to your child theme functions.php is as follows:
/* LOGGED IN / LOGGED OUT MENU */
function my_wp_nav_menu_args( $args = '' ) {
if( is_user_logged_in() ) {
$args['menu'] = 'logged-in';
} else {
$args['menu'] = 'logged-out';
}
return $args;
}
add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' );
/* ADD NONCE TO LOGOUT LINK */
function change_menu($items){
foreach($items as $item){
if( $item->title == "Logout"){
$item->url = $item->url . "=" . wp_create_nonce(NONCE_KEY);
}
}
return $items;
}
add_filter('wp_nav_menu_objects', 'change_menu');
/* LOGGED OUT MESSAGE TO REGISTER OR LOGIN */
add_shortcode( 'visitor', 'visitor_check_shortcode' );
function visitor_check_shortcode( $atts, $content = null ) {
if ( ( !is_user_logged_in() && !is_null( $content ) ) || is_feed() )
return $content;
return '';
}
To use the visitor only text shortcode in a page or widget just do E.G.:
[visitor]
<div class=”card card-body bg-light”>
You must register or login
to download files from this site.</div>
[/visitor]
Thanks,
Ben
Sure. The logout links that are part of WPDM plugin work as expected – they log you out of WordPress and take you to the Login page. These links are on e.g. the Login page using [wpdm_login_form] when you are logged in as a susbscriber and the [wpdm_user_dashboard] on a dashboard page. I click the Logout link provided by your plugin and the user gets properly logged out, and presented with an empty login screen. Perfect.
I have tried to replicate that function via a link in my main menu that uses the function posted before but with my login link I get sent to the homepage and I remain logged in to WordPress and can access the downloads / dashboard as a subscriber.
The only difference I can see between the two Logout links (yours on the page via the plugin and mine in the menu are the none tokens).
Can you advise how your plugin achieves this so I can implement similar in my menu.
Thanks
Ben
This reply has been marked as private.
Home
It’s on the left sidebar underneath Download White Papers. There should be a link there, but as you can see, there’s not.
We’re also experiencing the same issue on this page as well: http://tipsweb.com/resource-library/
We’re also not showing anything in our download history. Not sure why? I can’t even see the files.
Hello Carlos,
Please check the link to know how our lock option works.
Lock Options
Hope you it will help you.
Hello,
Back in June I asked, “Is it possible to have a PDF in the Library be only viewable?”. I do not think you fully understand what I meant to do. What I wish is to make a package and in our “Library” have the “DOWNLOAD” button be removed. The User clocks on the link and it takes it to the URL. Note that our “Library” shows all of the packages we have uploaded; so this is not for a single file on its unique URL page.
Do let me know if this is a possibility or not. Thank you.
This reply has been marked as private.
believe I have figured out a workable solution with the lates release of Download Manager. I am able to use a direct link to a download manager category page and have the listing show the search and link template of my choice. However, the title of the category and breadcrumbs are missing. I have turned off all other plugins except download manager, the archive page, default values and tiny mce add-on and switched to the 2019 theme to verify that there are no conflicts with your plugin.
Can you please tell me how to get my page to show the title and the breadcrumb as shown in your demo here – https://demo.wpdownloadmanager.com/wpdmpro/downloads/free-downloads/?
https://hr.staging18.gsu.edu/downloads/benefits-health-wellness/ – The title should be Benefits Health & Wellness
please check, https://marketing.sswhitedental.com/downloads/advertising-design-files/, it is showing next-previous category now, you have also need to adjust same option for User link Template for the similar categories, I have adjusted download-manager/tpls/taxonomy-wpdmcategory.php file
thanks
The download link was causing error due to the image button add-on, we have dropped the support for that add-on, we shall add the image button ooption with core soon.
You can check unmasking download link as I image attached,

I hope it may help you,
thanks
Hi,
the download button is only showing a “#” even though there should be a pdf.
What am I doing wrong??
Link: https://www.atrify.com/download/success-story-nomoo-atrify/
so, the user should find the option in the main download button Permission Denied or Access Denied when you use Only Block Download Link in the settings, please elaborate more,
thanks
Hello again,
I did some research and I think that I finale have an idea of how to set up the system using your plugins. I have 2 questions for you:
1) Can I have packages sell both as single products and via subscriptions? So for if the user has a subscription with 3 monthly downloads and spends those 3 monthly downloads can that user buy a new package separately? And can subscribers with the monthly free downloads download packages with the prices at all?
2) On the WP Pro Membership page (https://www.wpdownloadmanager.com/download/wp-pro-membership/) there is a list of supported payment gateways:
PayPal – Integrated
Authorize.net – Integrated
2Checkout – Add-on
Stripe – Add-on
Alipay – Add-on
Paystack – Add-on
There is no Coinbase payment gateway in a list, although you send me a link to it. So does this addon supports Coinbase or not?
I have a file that is set to use the video preview template – when I go to the page the preview never loads. I checked the source and opened the video source and it shows — Invalid download link — when going to the source. Please advise how to resolve?
Hello,
I have used ’email lock’. and When you click ‘download’ on the email that is sent, you get “Invalid download link”.
and also before I get the message that saying ” this link leads to untrusted site ”
thanks
When using packages hosted on Dropbox, integrated throudh WP Download Dropbox Plugin, the download count is not updated after downloading.
Any solutions?
For link-template customization for the free version, you can customize the link-template-default.php file from download-manager>tpls>link-template directory,
thanks
My website name is Booktree.Ng. When you try downloading different files, the lazy download plugin will only redirect to the first file downloaded. It’s like after the first download, the plug-in caches that file and serves other uses the same file irrespective of the download link they clicked on my website
No – I do not need filtering. We already have that. I need the deep linking to a specific category that was previously provided as a script for us to customize the plugin for that. Can you please talk to the developer who provided this customization in the past? https://www.wpdownloadmanager.com/support/topic/open-archive-page-with-a-specific-category-preselected/
I’ve created a simple download… it works perfectly… until I add ’email lock’.
When you click ‘download’ on the email that is sent, you get “Invalid download link”.
Any ideas?
thanks
No problem,
So Based on the image on the link below in the previous version you can add New membership orders.
Orders
Email Options
In the new version The orders Section Has been Removed, and there is no way to manually Set up a payment method manually via the admin dashboard.
There is also no way of transferring existing customers to stripe.
There is also no way of raising an invoice manually
There are also no email options.
There is no up to datereference documentation, that I am aware of.
I have purchased Download Manager Pro, The all plugins and all payment gateways packages am unable to perform the operations on which I have based my purchases (not your fault).
This reply has been marked as private.
I think external site product download link, you can put through the Insert Url option, you can check this option,
thanks
Nayeem – We have been using WPDM successfully for several years. The problem only arose when we updated to the latest version, and only affect downloads created since that update. So I don’t think it’s a server problem. Please sene me a link to download the previous version so we can go back to that version for now.