• I’ve got two version of jquery UI date picker running in two different plugins which is causing a conflict in admin dash->posts . I’ve tried to use deregister script but it’s not working and it’s driving me crazy as I can’t work out what I’m doing wrong

    [ Moderator note: code fixed ]

    add_action( 'wp_enqueue_scripts', 'site_init', 100000 );
    function site_init()
        {
            wp_deregister_script('jquery-timepicker');
        }

    I’ve tried several different variations based on googling the results for it but I’m unable to make any of them work.

Viewing 1 replies (of 1 total)
  • Thread Starter becskr

    (@becskr)

    I have found the answer – the problem is that the script was being called after, but using wp_print_scripts instead of wp_enqueue_scripts solves the issue.

Viewing 1 replies (of 1 total)
  • The topic ‘Unable to deregister plugin scripts’ is closed to new replies.