I have figured it out.
There is a good explanation here
You edit the wp.config file with the scripts you wish to not load…
define('WPCF7_LOAD_JS', false);
…and then manually enqueue them on the pages you wish to load the script.
Related Posts:
- How to load wp_editor via AJAX
- How to check if user is in back end?
- Is there a standard for naming plugin versions
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- Plugin update error message
- How can I modify what is being output in wp_head, whether by a theme or WordPress in general?
- Where should I use get_option in a plugin
- WordPress Plugin Development from Scratch. How? [closed]
- How exactly does Bad Behavior plugin work?
- Automatically Import Image into Posts from URLs on the Web?
- Disable text tab on WordPress text-editor
- Restrict individual category combinations
- Set a User as Author of all ‘New Posts’ posted
- Passing URL parameters to WordPress pages and pretty url
- Multiple Password Portal Page BEFORE User Account Set Up
- How to get the custom page get_permalink?
- Plugin translations problem
- Use external link in the add sub menu
- register_activation_hook in mu-plugin not triggering
- WordPress register_activation_hook table creation not working
- Multisite mu-plugins site-specific directory
- WordPress shopping cart that supports 2 tier product variation options
- Wp die causing 500 Internal Server Error?
- How to get post URL in the_content filter?
- Redirect to a welcome page after updating plugin
- Manually add order item with fixed product_id in WooCommerce
- How to update WordPress plugins to latest using SVN
- WordPress Blank Screen Issue [closed]
- Custom Plugin – Package and Deployment Solutions
- Advanced Custom Fields displaying on tag pages
- How to display (plugin?) output on a single page (not a widget, probably not a short code) – template, plugin, combination?
- w3 total cache and sitemap.xml
- Test if php document executed by WordPress or directly
- How to move the “create new account” higher in woocommerce
- How can I add songs to my wordpress site? [closed]
- My plugin won’t return anything [closed]
- publish_post action doesn’t work
- WordPress contact form 7 to show the form dropdown menus as like [closed]
- wordpress content .php file in an iframe’s src in a wordpress post
- What is generating Similar Posts and Related Posts on my blog?
- custom uploader in the admin area
- How do I add the same contact form to multiple wordpress sites and capture the response in one place or database?
- How to best create a jQuery Slider to display a native wordpress gallery?
- How to do the simplest possible frontend ajax call from a plugin?
- New bulk action to resend welcome emails
- I receive taxonomy id
- How do we update a custom file upload field with the Advanced Custom Field plugin?
- How to Include Fields in Query String When Making Request of WordPress.org Plugin API?
- Custom plugin – load enqueue only for this plugin
- Where do plugin variables live in the db?
- Function added to hook “new_to_publish” not executing – custom plugin
- How to display a number of posts based on a Advanced Custom Field (ACF)
- How do I use a custom theme for the WP Maintenance Mode plugin?
- How to get Facebook comment plugin in blog? [closed]
- value not set in contact form 7 plugin of wordpress [closed]
- How to translate user added content in a plugin
- How to call php file in theme directory from plugin
- uncaught TypeError: Cannot read properties of null (reading ‘classList’) custom plugin
- How do I minify a plugins CSS/JS code?
- Elementor Pro display featured image on section -> style -> image using shortcode
- Error when adding extensions to wordpress version 5.9 with a DIVI install
- Create a pdf from the entries in DB
- I need plugin or method suggestion
- WordPress – send digital product with custom email
- Litespeed brokes my css
- German Market: How can I only show the imprint in the footer of the mail? [closed]
- How can replace this url
- Display Multiple Photos as Featured Image when mouse moves on to it post
- Trying to add a new feature in my wordpress website
- How can I implement radio buttons with icons in Contact form 7?
- SEO Site Title appearing in google search despite not being added
- Use action, filter, or hook to append HTML to WordPress plugin function
- On button click, redirect users to registration page instead of another page
- Missing files in enqueue actions causes WordPress to reload
- I can’t use WP_Query
- Adding/ Removing actions for plugins
- Why user profile update creates Additional Capabilities
- Add new post using a page inside the website
- Adding list of Indexes in wordpress document
- API calls on plugin activation or init?
- Get page content by ID (from a plugin)
- Unfortunately removed myself as plugin committer
- Category archive in menu
- WordPress filter function using query modifications
- How can I Customize My WordPress Admin Dashboard into Dark Mode?
- ACF Taxonomy Object term Null [closed]
- Remove on behalf of in wordpress emails?
- Plugin problem. Question is not appearing.
- Embed php code in custom field of a plugin [closed]
- How to make a rest style plugin?
- Sorting/Ordering Poll Plugin?
- Suitable hook when creating, updating and deleting posts programmatically
- Refresh server side rendered block in Gutenberg without changing attributes or its content
- Disable auto-embed feature when pasting links in Gutenberg editor?
- How can I gather forums posted by visitors from different sites in one place? [duplicate]
- Does anyone recognize these table names?
- On WordPress.org Plugin repository, Last Updated Date doesn’t match with Plugin Version Update Date
- enable admin approval and email verification in ultimate member plugin
- Gutenberg Blocks and Elementor
- Hide parent link in submenu on admin menu