Okay so I figured this one out.
function custom_dequeue() {
wp_dequeue_style('et-gf-open-sans');
wp_deregister_style('et-gf-open-sans');
}
add_action( 'wp_enqueue_scripts', 'custom_dequeue', 9999 );
add_action( 'wp_head', 'custom_dequeue', 9999 );
@milo was right. The plugin was re-enqueueing it so the deregistering it got that file to stop loading.
Then the plugin also had another check, where it would register and enqueue another font with the same handle. The action was hooked into wp_head
so I added my another action to wp_head
and finally got it to stop loading completely!
Thanks for everyone’s help!
Related Posts:
- Disable email notification after change of password
- Problems with autoloading classes via sp_autoload_register / maybe interfering WP-specific autoloader
- How to Loop Plugin Option Field Set?
- Can we completely remove the WordPress Sitemaps (WordPress 5.5)?
- Updating WooCommerce variable product stock issue
- Rename existing old uploaded images containing accented French characters (not during upload)
- How can I execute some small piece of PHP code in a sandbox area of my WP?
- Activating a single plugin via php
- White text on white background in TinyMCE when wp_editor is called in WP 3.9
- Is it possible to filter the wp_footer() scripts, read the content, and insert them inline?
- Loading class files via autoload method
- Adding a custom line of text to php code
- plugins_url() incorrectly returns a url with www subdomain
- How to redirect Old Post URL to new Post and keep Old post Comments?
- Modifying Footnote Plugin for Descriptive Title Attributes
- I would like to use create a function in my custom plugin to tell WP to use a different header
- Getting media library popup in custom plugin admin page
- How to add pagination to wpbakery grid?
- Escape when echoed
- add_meta_box (Will display only in specific page admin WordPress)
- How to write one comment and publish on every post using database or plugin?
- Why wp_mail() function isn’t sending any emails and displaying ‘0’ in Chrome ‘Network’ response
- Make id column as AUTO INCREMENT on plugin activation
- How can I display a contact form for out of stock products in WooCommerce?
- How to get number of Affected rows from wordpress dbDelta() function
- Redirecting to home page after login as custom role WordPress
- Notepad sticky plugin
- WooCommerce Custom Product to checkout
- How to stop or remove an action being called inside a function of an extended class
- Adding an Options Page to a Plugin
- How do I “get the next 10 posts after post_id == x”?
- How to simultaneously access the same MySQL database in the main column and sidebar of WordPress?
- Date calculations from 2 custom fields
- Error with Image Slide plug-in/ s3slider in WP
- Easiest way to add dropdown to a page
- Assign / update custom field value for all posts (How can I assign only to posts without custom field value?)
- How to enable specific plugin only based around shop manager role?
- Changing “elapsed time” to “time remaining” on MP3-jPlayer audio player with CSS or PHP changes
- Adding a new field to the address field type in gravity forms
- Show admin notice on incorrect value on form field
- Customizing NEXTGEN Gallery To link images to pages
- WordPress adding a menu page when activating a plugin
- Redirect to another page using contact form 7? [closed]
- Is wp-app.php or wp-apps.php needed for WordPress?
- How to distinguish if a plugin is not installed or just not active
- JavaScript in a PHP plugin
- Checking the count within a foreach loop
- Is there a function to list all uploaded images? How can I add one?
- Api external with wordpress
- speed up pagination for huge database
- Using meta_query in a WP_Query not working for numbers properly
- File Uploader – Upload without adding to Media Library
- How to redirect to a page after the form is submitted
- Trying to include files in plugin isn’t working
- WP Insert Post If user refreshes override new post
- Code for unique user visit count on every page WordPress
- Searching a tab/space delimited text file based upon form criteria and returning a ‘record’ into a word press results page
- implement custom roles in custom plugin
- WordPress is redirecting me to homepage
- How can we get this dynamically as this folder may not be by the same name always → wp-admin
- Cant create table on plugin activation
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- Redirect to a page while maintaining search query parameters without causing an infinite loop
- How to ignore fields if empty?
- Why is my shortcode not working?
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- Moving a few select DB tables to a new WP instance
- implement checkbox or toggle switch in plugin code
- Cron job shedules replace?
- Create a form and have custom menu display based on user answers?
- How to get the total count of Favorite/Favorited authors
- Admin login substantially slower on production server
- redirect to a custom page
- Can i add custom code in Source in specific page, Header from function.php?
- Problem with conditional woocommerce custom checkout field
- How to change text in a page by utilizing a custom user id?
- How can I insert a record into a custom table from my custom form in my custom admin page?
- Editing Global Variables from Inside Functions
- How to save information related to post in database?
- Posting code inside the post instead of in the template file using shortcode
- Metabox Data not saving
- conditional tags for the output of a plugin
- Xml output not places where i want
- Can’t insert files in other inputs
- Including a PHP file via a function that is part of a plugin?
- How do I output user_registered time in my correct timezone?
- How to tweak a plugin without preventing it from updating
- Place max_execution_time in plugin [closed]
- Creating a press page for our project
- how to search through plugin in wordpress cimy-user-extra-fields?
- Integrate Razorpay quick payments plugin with contact form7 plugin
- wordpress illegal string offset ‘parameter’ error
- Translate text for empty product
- Function not being called on form submit, only blank admin-post.php page
- cURL External API request displays content above other content on page
- WordPress Convert queries to slashes using function.php
- Creating a Table Row by Row
- Getting 504 Gateway Timeout Error on AWS Server! [closed]
- WordPress issue – data is not showing in wp-admin, but when searching through database, all the data is there
- plugin doesn’t retrieve data from database