If your bootstrap or other enqueued scripts have a dependency or name conflict, this could enqueue all these scripts. There are a large number of common scripts in WordPress core that are enqueued under common names. I always recommend prefixing your script names with something specific.
wp_enqueue_script( 'theme-bootstrap', 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js', array( 'jquery' ), '4.3.1', true );
Related Posts:
- How do I Enqueue styles/scripts on Certain /wp-admin Pages?
- Trying to get custom js files in my admin header
- admin_print_styles incuding $_SERVER[‘DOCUMENT_ROOT’]
- admin_enqueue_scripts not load custom scripts from cdn
- Where is the right place to register/enqueue scripts & styles
- Check if a script/style was enqueued/registered
- Load js/css files only on specific admin UI pages
- How to dequeue / deregister any theme styles and scripts
- Why are admin scripts not printed
- Hyphens vs. periods in the script slug in wp_register_script?
- How to disable 3.3 Tooltips?
- Enqueued Stylesheets Effecting Admin Styles
- Best spot for wp_register_script() and wp_register_style()
- Register script/style: Is it possible to customize the version query string via plugin?
- Using multiple versions of jQuery while still calling it like WP likes
- is_page() function doesnt working
- Execute script only on certain admin pages
- Deregistering a script in WordPress seems impossible
- How to enqueue JavaScript file that depends on CSS stylesheet
- How to force that styles are enqueued in the header?
- Enque script based on url paramater
- Where is the right place to register/enqueue scripts & styles
- How to use underscore.js in WordPress Admin
- load-{$page hook} and returned parameter
- WordPress Child theme fails to override parent theme css
- How to load Dashboard default media files via HTTPS even when Browser URL has HTTP
- How to remove Google fonts from wp-admin (Roboto) added by core
- Conditions for admin get_current_screen action parent_file edit.php?post_type=page
- wp_enqueue doesn’t load dependencies
- Why do WordPress adds the id=”handle-{js|css}” attribute to scripts and stylesheet?
- login_enqueue_scripts changes are not reflecting
- Organizing Code in your WordPress Theme's functions.php File?
- How to check if a user is in a specific role?
- Enqueue Scripts / Styles when shortcode is present
- Can I rename the wp-admin folder?
- When should I use wp_register_script() with wp_enqueue_script() vs just wp_enqueue_script()?
- Changing Admin Menu Labels
- Adding custom columns to custom post types
- Conditionally Loading JavaScript/CSS for Shortcodes
- How do I dequeue a parent theme’s CSS file?
- Adding Fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?
- adding custom stylesheet to wp-admin
- Can’t change language (only “English (United States)”)
- Is there ANY way to remove comments function and section totally?
- wp enqueue style on specific page templates
- How to use “menu_order” field for posts?
- “Too many redirects” ONLY when trying to access wp-admin page
- How to load css in the footer [duplicate]
- How to restrict dashboard access to Admins only?
- How can I get a list of all enqueued scripts and styles?
- Admin Page Redirect
- Disable dragging of meta boxes?
- Toggle admin metabox based upon chosen page template
- Load CSS/Javascript in frontend conditionally if block is used
- Unable to login and wp-login.php redirects to wp-admin%2F&reauth=1?
- How to properly dequeue scripts and styles in child theme?
- When moving a WP site, why does wp-admin redirect to old site?
- Prevent Version URL Parameter (?ver=X.X.X) on Enqueued Styles & Scripts
- How to disable the “Post Lock/Edit Lock”?
- adding the category to the admin column for a custom post type?
- How can we make managing lots of pages in WordPress Admin better?
- Change page title in admin area
- do_shortcode() within Admin Page
- How to load Widget javascript + css files only if used?
- How can I control the position in the admin menu of items added by plugins?
- Changing the ‘wp-admin’ URL to whatever I want
- How to load scripts/styles specific for a page
- Unit testing in the WordPress backend (is_admin() is true)
- Admin ajax request return 0 with die()
- How to prevent access to wp-admin for certain user roles?
- How to remove screen options and help links in the admin area?
- How can I de-register ALL styles all at once? And same with Javascript?
- How to remove the core embed blocks in WordPress 5.6?
- How to increase the file size limit for media uploads?
- Create WP tutorial for users with admin pointer using next button for navigation
- How to add stylesheets only to pages with specific shortcode?
- I’m getting a 404 message when I try to access wpadmin
- wp_enqueue_scripts, wp_register_scripts, wp_print_scripts: i’m confused
- Taxonomy dropdown metabox in the back-end
- wordpress wp-admin css not loading
- Sort admin menu items
- How to order by post meta name in wp admin?
- How set defaults on wpLink()
- Remove dashboard, use Pages tab as default
- Register and enqueue conditional (browser-specific) javascript files?
- How to redirect/rewrite all /wp-login requests
- Show all post tags on post edit screen/sidebox
- Correct Method to run scripts with dependencies without enqueue?
- How to hook in and modify the new revisions UI (3.6+)?
- How to display a static HTML page while setting up a WordPress site?
- Limit widget to certain sidebar?
- How can I uninstall a language?
- Check if user is admin by user ID
- My wordpress site gets redirected automatically to the old site any known solution for this?
- Best way to present options for home page in admin?
- Cannot deregister a script using wp_deregister_script
- Use a different domain for SSL
- Remove specific items from Quick Edit menu of a Custom Post Type?
- How to filter by post-format in admin?
- Enqueue custom font file with rel=”preload”