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:
- How do I exclude plugins from getting automatically updated?
- Where is the best place to use add_filter
- How To Determine If A Filter Is Called In A Sidebar/Widget Context?
- What characters are allowed as a shortcode tag and how should they be sanitized?
- plugin_action_links Filter Hook Deprecated?
- PHP Deprecated: Non-static method should not be called statically
- Filter Hook on plugin update
- How can I show drafts in wp_dropdown_pages list?
- Use external link in the add sub menu
- Failed to invoke other hook from the init hook
- Very stubborn wp_register_script / add_action vs remove
- How can I filter blog name?
- Remove action from a plugin class, forced to use global instance
- remove filter which calls a public static function
- There’s some way to add a wrapper around posted images?
- Custom preview_post_link not working for draft post
- Woocommerce Shipping module available only for type of products [closed]
- Determine plugin name from within plugin_action_links filter
- add_filter the_content in functions.php not working
- What Plugin Do You Use to Turn WordPress based site to A Blog Aggregator
- Gutenberg Blocks – Change EDIT part of the block using editor.BlockEdit filters. How to change the markup?
- How to remove xmlns on language_attributes()?
- Randomize attachment IDs
- add_filter comment_edit_redirect not working
- Pass info from functions.php to plugin
- add_query_arg not working
- Change permalink structure hidden button edit
- When to call add_filter
- Edit default comments page in WP Admin
- Inserting above the comment template
- Creating a plugin to sanitize comment and the url field before display only
- How to check current user before all actions and filters?
- How do I create a filter feature on WordPress? [closed]
- Create a navbar filter that filters by a custom field
- qTranslate remove default directory from link
- How to disable a plugin for certain page?
- WordPress user account activation
- URL parameters causing 404 on home page, but nowhere else
- Which filter affects the ‘entry-title’ post class
- How to change the name of the “edit my profile” link in the WordPress admin backend
- How to reorder and display a feed to be chronological?
- add_filter doesn’t work
- Template filter for custom taxonomy terms
- Using add_action before add_filter on a plugin?
- Modify page title and subtitle with a plugin
- override filter in a plugin
- remove_action not removing add_action from constructor
- Trying to add a page template for my custom post type from a plugin, but it will not display in the template dropdown unless file is in theme
- Override a Plugin Function
- Can I filter a function created by a theme or a plugin?
- Add a function call after content automatically?
- How to use add_action for multiple instances of the same class
- How to Use the Filter “sidebar_login_widget_form_args”
- is there a way to pass a parameter to a add_menu_page function?
- How to hook into action/filter call
- Looking for a filter to modify the months
- What’s the best way to echo out a filter variable?
- Edit post image attributes on fly?
- Add hook after content without formatting
- How to convert Currency from USD to other IP Based currency in Php function
- How i remove specific script from header?
- Adding an item to an anonymous array inside a filter?
- taxonomy_template filter not working on pagination [duplicate]
- 500 Internal server error wp_handle_upload_prefilter
- WooCommerce Product Table – filter query on attributes
- Disable WC Bookings automatic order completion [closed]
- Modify function output in a plugin
- Using Filters to modify contect – DB query results alwats appear fist
- Override filter variable not working
- Help needed with woocommerce (wc stripe) filter
- WordPress Add advertising ads befor and after content with periority [closed]
- Edit plugin filter
- Add HTML between feed items
- 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
- Filter the HTML content of plugin
- change output location of plugin function using a custom hook
- Filter for modifying image on upload
- Strip shortcode from excerpt [duplicate]
- County Finder form/plugin?
- How to change response of admin-ajax request?
- add query string to all pages after user logged in
- WordPress plugin add_filter returning a link does not work. What is the correct way?
- Order shipped by which driver[hook for woocoomerce order staus changed and popup in admin panel ] [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?
- WordPress REST API filter on blank custom ACF
- Brands Filter Not Working For On Sale Products
- FacetWP custom display based on post type [closed]
- Removing filters with arguments set in a class
- Getting table to format properly in RSS feed emails
- Getting table to format properly in RSS feed emails
- Remove wpseo filter from polylang plugin
- How can we extent core/group or cover block?
- Customize WP Filter Hook
- How to display title, description etc in block images?
- How to customize WP_Error (REST JWT authentication plugin) [closed]