It took me a while but I figured it out, I just placed this in mu functions.php file:
function remove_se_filters($query) {
if($query->is_feed && $query->is_category){
global $wp_filter;
foreach($wp_filter['pre_get_posts'][999] as $key=>$filter){
if(strpos($key, 'se_filters') !== false){
unset($wp_filter['pre_get_posts'][999][$key]);
}
}
}
return $query;
}
add_filter('pre_get_posts','remove_se_filters');
I found that I couldn’t use the remove filter function because I did not have access to the original class variable that was used to set the filter in the first place so going into the filer’s global variable and unsetting the array manually was the next best option.
Related Posts:
- Passing a parameter to filter and action functions
- Get a list of all registered actions
- How can I edit post data before it is saved?
- WP Rest API: details of latest post including featured media url in one request?
- How do I exclude plugins from getting automatically updated?
- Where is the best place to use add_filter
- How to only hook on Single.php after content?
- How do I create an HTML embed code to publish WP posts on other non-WP websites?
- How To Determine If A Filter Is Called In A Sidebar/Widget Context?
- Change Page’s Tag Using functions.php File
- What characters are allowed as a shortcode tag and how should they be sanitized?
- How to disable Gutenberg editor?
- Edit plugin without hooks in functions.php
- How to remove filter added by another plugin in a class
- WordPress apply_filters() Arguments Missing
- plugin_action_links Filter Hook Deprecated?
- PHP Deprecated: Non-static method should not be called statically
- Filter Hook on plugin update
- Using add_filter inside another class
- How can I show drafts in wp_dropdown_pages list?
- How to list the Hooks and order of execution in current loading page? [duplicate]
- Removing user contact methods works from functions.php but not from a plugin
- Hide WordPress Plugin Deactivation Links
- Alter post slug by a filter that is fired just after a post is created
- Use external link in the add sub menu
- Pass A Value From Outside To A Plugin Variable
- Is there any multiple filter/criteria plugin for wordpress? [closed]
- Failed to invoke other hook from the init hook
- ACF Taxonomy search on backend (Relationship field)
- Help needed with woocommerce (wc stripe) filter
- What action or filter can I use to change all the html returned from server for a page?
- Can I add content before post content without using the_content filter
- WordPress Add advertising ads befor and after content with periority [closed]
- Why can’t I shove an instance of a class into a variable from a do_action hook?
- “Share” Content from Another Site as Post
- Edit plugin filter
- Add Filter to get_next_posts_link
- Add HTML between feed items
- Passing a parameter to filter and action functions
- trying to create simple plugin to filter categories from all authors
- Jetpack Comments Change Placeholder Text
- shortcode which is introduced into entry the blog, and appears in side bar
- How do i get all author posts on custom post type list
- How to filter a a variable in a plugin’s function?
- Retrive images from the_content()
- passing ‘&’ in return function of add_filter
- RSS Feed has no Items (Possible Plugins Conflict)
- Filter the HTML content of plugin
- apply_filters to content but ignore shortcodes
- Use of apply_filter in plugin/widget class
- change output location of plugin function using a custom hook
- getpost content with all formatting for admin pages
- Filter for modifying image on upload
- making a glossary with wordpress
- Adding a Filter to Sidbar Login Plugin to Change Login Button Lable
- Strip shortcode from excerpt [duplicate]
- What is the RSS feed link for the newest WordPress plugins?
- Which filters or actions involve with index page for plugin?
- How to add different CSS for galleries
- County Finder form/plugin?
- Add a filter to a different custom plugin
- Pulling RSS from site and display it in posts
- rss feed code help
- How to change response of admin-ajax request?
- add query string to all pages after user logged in
- How to add a filter conditionally based on page related Conditional Tags
- WP Members additional fields on user profile [closed]
- WordPress plugin add_filter returning a link does not work. What is the correct way?
- Developing a Site Like AllTop.COM – RSS Reading Problem
- Order shipped by which driver[hook for woocoomerce order staus changed and popup in admin panel ] [closed]
- Which action/filter can i use for a Member Plugin [closed]
- Unable to pass arguments from plugin form to filter hook using ajax, the data is transferring via ajax but unable to pass as arguments in filter hooks
- How to Add Extra Text In WordPress Title Before Post Publish
- How often should I execute add_filter and function declaration in Code Snippets?
- How to add product thumbnail on orders list on backend?
- Custom priority with the_content filter based on user input
- filter just a portion of plugin function
- WordPress REST API filter on blank custom ACF
- Selectively override Easy Digital Downloads protection via filter
- Brands Filter Not Working For On Sale Products
- Deactivated a plugin with a filter, but it still enqueues JS files
- FacetWP custom display based on post type [closed]
- Change social icon in twenty twenty three theme
- What are Seeds? [closed]
- Removing filters with arguments set in a class
- is_singular() in mu-plugins not working
- Getting table to format properly in RSS feed emails
- Getting table to format properly in RSS feed emails
- Remove wpseo filter from polylang plugin
- WooCommerce Attribute Mapping
- How can we extent core/group or cover block?
- Hide attributes based on previous selection
- Customize WP Filter Hook
- How to Change Default RSS Feed URL in WordPress Website?
- wp_head filter not executed inside custom class
- What is the best way to ignore wordpress administration using add_filter($title) also when Ajax request
- remove filter added by plugin with anonymous function
- How to display title, description etc in block images?
- Possible to overwrite load_template function in plugin using functions.php
- How to customize WP_Error (REST JWT authentication plugin) [closed]