Ready to get started?Download WordPress


Download Monitor
Conflicts with Wishlist Member Plugin (3 posts)

  1. tanver
    Posted 6 months ago #

    Hi there,
    Using the latest version 1.4.2 of Download Monitor and it is conflicting with the Wishlist Member Version 2.80.2027 - On "Add Download" page when we click "Add file" button nothing happens.

    Anyone else having come across this issue or having sorted it out and willing to share his experience will be great.


  2. bravenewniche
    Posted 5 months ago #

    I updated to WLM Version 2.80.2027 a few weeks ago, but hadn't worked with the Download Monitor screens until now - and yes, after going through all my plugins, found that it was WLM breaking the Add File button.

    Off to find an answer.

    Or maybe something other than WLM! It's enough of a nuisance to develop with anyway...

  3. bravenewniche
    Posted 5 months ago #

    In the wpm.php file in the root of the WLM plugin folder, look around line 3168 and you'll get the handles for the scripts being used in the latest WLM (earlier scripts are just before that point).

    You need the handles in order to dequeue the scripts.

    Ok, haven't got much time right now, so this is a temporary fix that removes all WLM scripts from admin post-new.php screens:

    function wlm_remove_scripts() {
        global $pagenow;
    	if ( $pagenow == 'post-new.php' ) {
            wp_dequeue_script( 'select2' );
            wp_dequeue_script( 'wishlist_member_admin_more_js' );
            wp_dequeue_script( 'wishlist_member_admin_main_js' );
    add_action( 'wp_print_scripts', 'wlm_remove_scripts', 100 );

    I need to target this more to only affect Download Monitor screens, both Add New and Edit screens, but other deadlines are calling me!


You must log in to post.

About this Plugin

About this Topic