No idea why the change of folder name makes a difference, but you should add jquery as dependency in your enqueue
wp_enqueue_script(
'wtfjs',
plugins_url( '/js/wtf.js' , __FILE__),
array('jquery')
);
Related Posts:
- force enqueue script to be first in order of prominence
- Editor not displaying dynamically after clicking on the button
- How to fetch serialized data from wordpress options
- How to load plugin before the wordpress jquery?
- Why is my ajax call refreshing the page?
- Disable wordpress from including jQuery in the head section
- Admin-ajax.php is dying “0” without processing function
- How to create popup same as wordpress popup feature
- Plugin jQuery version VS Theme jQuery version: search for best practice
- Adding a jquery script to plugin contact form 7
- jQuery function didn’t work in my plugin
- Add get_option to jquery
- Check if email address exists front end with AJAX in a plugin
- Confused about shortcode and settings values
- Running jquery script after shortcode [closed]
- JQuery not working in my plugin [closed]
- Notepad sticky plugin
- Loading jQuery UI in the head
- Form isn’t inserting data into database with ajax plugin
- custom changes removed after plugin update
- Error with Image Slide plug-in/ s3slider in WP
- Need to change url paramenter of share product pintrest [closed]
- How to tie dark mode with prefers-color-scheme webkit? [closed]
- jQuery for custom plugin not working with Divi theme
- Redux Framework: Page freezes on typing in Editor
- How can I inject options into an select tag inside the widget form?
- Using window.onload with Ubermenu
- jQuery | JJ Carousel Plugin – Can’t set speed [closed]
- Jquery plugin not working on single pages
- Jquery NoConflict Problem
- this jQuery function works perfect in static html page but not on wordpress
- How to include this jQuery File in wordpress?
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- “Conflict” with jQuery (or its plugins)?
- a weird attribute on every html tag
- How to add an element right after the article using jQuery?
- How to track clicks
- Remove Yoast jQuery from front end
- How to display checked posts on another page over AJAX? (like comparasion style)
- Adding media upload button to User Profile page (following a tutorial)
- I changed .live() to .on() but change is not reflected on the server
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- Save user total active time after login in wordpress [closed]
- Opening a JQuery modal window on click of a button with a JQuery plugin
- Why does my jQuery plugin show up as text in WordPress?
- How do I make sure that my plugin only runs on article detail pages?
- Disable submit button order
- Enqueue script: link not working in page source
- How to include my Ajax calls in one function instead of calling different ones every time?
- Why jquery option is not working when pass value using wp_localize_script?
- jQuery code didn’t run on my plugin
- The Events Calendar Plugin – List View Background Colour Issue [closed]
- “switchEditors is not defined” with wp_editor() in jQuery UI tabs
- JS Plugin not executing the js correctly. Trying to make all internal links scroll smoothly
- Call javascript functions from each page
- Using AJAX to run SQL statement and populate dropdown
- WordPress slider that allows image, headline, text, and button?
- Ajax request sends url rather than data
- Adding a jQuery modal dialog to the admin area
- sliding/fading header plugin or approach suggestion
- Pass PHP variable to javascript
- Cannot read properties of undefined (reading ‘firstChild’) using photoswipe in product page
- Trigger jQuery to add events after AJAX-loading table in admin plugin
- wc_get_template_part doesnt display the content [duplicate]
- Why do I need to reload the page for WordPress to see the new custom field added with jQuery
- Cannot pass value variable to WP AJAX functions
- How to properly enqueue jQuery knob on WordPress without conflict?
- How to get a specific string from a url
- Does anybody know how to insert a complete jquery plugin into a wordpress elementor-page?
- JS working when used normally but not in wordpress
- $wpdb not working wordpress plugin ajax call
- Scroll to ID broken in main menu
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- WordPress Thickbox Navigation Issue in Gallery
- Dynamic input fields in WordPress Plugin
- Not displaying Woocommerce product page in lightbox
- show-hide based on select option jquery wordpress
- Add HTML between feed items
- WordPress Feedback popup with date saved into table
- WordPress ajax not working in registration
- How to add jquery to my custom post type wp plugin
- Like/Dislike Bar not working when updating
- jquery-issue: cannot load the basic jquery
- Possible jquery / library conflict in plugin usage
- Why won’t the Comprehensive Google Map Plugin load?
- “The Events Calendar” Issues in WP 3.2
- Element works, but not on wordpress site [duplicate]
- WordPress site keeps getting flagged as malware [closed]
- FacetWP: Plugin breaks button/modal functionality inside searchable content area
- TypeErrors with Yoast, jQuery in conflict?
- Javascript as Jquery Function Call?
- JQuery UI plugin not working in IE7?
- Jquery based image accordian plugin
- wordpress jquery is not defined because the head tag is empty
- Count div with class (.length) only shows 0 [closed]
- Jquery post responses 500 error after some time and lastly an 503 error
- Ajax button “Load more” is not loading correct language version posts for logged out users
- WordPress GiveWP Plugin showing blank page in none default theme [closed]
- Woocommerce attatch files and custom input meta to cart items and then to order
- Ajax response from Media Selection does not update ALL information more than once