Use wp_script_is()
to check if a script is in the queue.
function add_my_scripts() {
$doing_jquery = wp_script_is('jquery', 'queue');
$doing_prototype = wp_script_is('prototype', 'queue');
var_dump($doing_jquery, $doing_prototype);
}
add_action('wp_print_scripts', 'add_my_scripts');
Related Posts:
- How to include jQuery and JavaScript files correctly?
- jQuery in header or footer
- Hook the Keydown Event in the TinyMCE Post Editor
- How to Add a .js file Only in one specific Page Dynamically to Head
- How to trap “Publish” button to check for meta box validation?
- Use js script from one plugin in another plugin
- Mixing Regular Javascript With jQuery in a Plugin
- Is there an event or an other method that tells me the preview is loaded?
- javascript datatables in a plugin
- Plugin – Make sure jquery is loaded in my settings page plus my JS file
- should i be checking for jquery before enqueing it in a plugin
- Need help about understand api, wp, $ syntax in WordPress plugin script
- Insert Into Post Not Working For Audio File Using jQuery
- wp.media gallery collection sometimes undefined
- Query String Filtering API
- jQueryUI draggable doesn’t work in WordPress plugin
- Filterable posts using categories
- Add a Script button in W3 Total Cache plugin not working due to conflicting jQuery version
- How do I use (or mimic) document.getElementById() on a page loaded from WordPress database?
- How to get the value entered in the input field in wordpres
- How react js and other Javascript Technologies works on WordPress plugin?
- Insert meta-description into Yoast-SEO input-field via JavaScript
- How to implement color picker from wordpress in my plugin?
- How to provide translations for a WordPress TinyMCE plugin?
- How-to implement admin Ajax inside an admin WP_List_Table?
- Include third party Javascript library which is not included in WordPress
- How to prevent loading of all plugin’s resources?
- Pass javascript result to shortcode executer function
- The changes I make to an external JS file of my WP plugin are only applied after I clear my browser’s cache
- `wp_set_script_translations` with `wp.i18n` does not return translated strings in simple plugin
- Making a custom widget that includes a tinymce and works in Site Origin Page Builder
- Looking for callback function after Gutenberg is rendered?
- wp_enqueue_style built in styles
- What’s the better way to add an inline script?
- Plugin admin page meta_box toggle and order state not saving
- How to create popup same as wordpress popup feature
- Gutenberg: useDispatch is not a function – @wordpress/data included
- Prevent Javascript Facebook SDK Conflicts in plugin
- how to include javascript file and css file in wordpress
- Print WordPress username id inside JavaScript
- How to run a external JavaScript file on wp-admin if admin, and other if normal user?
- jquery document ready function not being called [closed]
- Why is my javascript not invoked in my hooks except wp_head?
- Where to call wp_enqueue_script in a plugin with custom template?
- how to add Jquery script to one page?
- How to test nonce with AJAX – Plugin development
- How to select the contents in the text view textrea in wp_editor?
- Are there any scripts, classes, and/or functions built-in to WP for a plugin to export/import its saved data from wp_options?
- How to prevent UNDO on guternberg block editor
- how to search users by ajax live search
- Do I have to worry about useState causing a re-render?
- jQuery selectors for editor elements safe to use?
- wp.template() returns tags in Ajax response
- Display WordPress the_content() via data attributes
- My WordPress plugin cannot load my JavaScript file
- WordPress custom taxonomy check box to dropdown
- jQuery does not enqueue for my purpose… (before an inline script in the footer)
- Inserting code to HTML view from a pop up initiated from visual view
- jQuery in WordPress Plugin
- WP Plugin Running before jQuery
- How to include jQuery into my plugin so I can use it on plugin page?
- Ajax submit result opens in admin-ajax.php
- Jquery was not found on this server
- insert query on a custom table using ajax with jQuery plugin Jeditable
- How to enqueue scripts in right way in a plugin?
- Developing the save function in Gutenberg blocks
- How to disable a jQuery plugin on WordPress plugin page
- Using function from enqueued .js file in theme in plugin?
- jQuery UI tab does not work in the plugin page
- How to overwrite iris color pallates from theme to plugin
- How to insert HTML/CSS/JS into my iframe plugin?
- Is there a WordPress plugin to design WebGL? [closed]
- Thickbox in Plugin settings page?
- Load php file with jquery in single.php
- Get cat parameter from admin-ajax
- How to write a shopping queue line plugin with a queue button?
- Getting incorrect filepath inside custom block front-end output using @wordpress/create-block tutorial
- Trigger function on Remove block or add new block in Gutenberg JavaScript
- Rerender core Templates with with ToggleControl but it doesnt recognize block type
- HTMLCollection not counting right in editor? / for loop not working on elements in DOM
- How to use setAttributes outside of the edit function return
- Reading plugin settings in esnext wordpress block
- $ is not defined [duplicate]
- Dynamically modify content added to table via javascript
- WordPress Ajax not returning Response
- WordPress with React: Saving and Using Data Collected with fetch
- Pass javascript result to shortcode executer function
- replacing jquery google cdn with a new version dynamically
- Uncaught ReferenceError: kpoejy is not defined
- Remove from a div by class name from post page if post author role is not administrator
- Why this plugin is not working?
- Cannot echo a JS variable to a jQuery plugin coming from wp_localize_script
- On one of my sites a file is shown as 404 but the file IS there
- Ajax in Plugins: returns the whole page
- Loading jQuery library from WordPress admin
- How can i add insertion point between inner blocks in my custom block like core blocks
- How do I access the contents of WordPress Classic editor in admin area with JavaScript?
- How can create a custom plugin to call my webapi after any registration or membership plugin functionality
- Reinitiate Gutenburg’s blocks using javascript
- how to add contact form 7 shortcode in javascript variable