You did not write where you put the filter removal code, but I suspect you tried to delete it before it was added. Another important point, you have not given the priority parameter in remove_filter().
Quote from the documentation:
remove_filter( $tag, $function_to_remove, $priority );
Important: To remove a hook, the $function_to_remove and $priority arguments must match when the hook was added. This goes for both filters and actions. No warning will be given on removal failure.
Try removing filter when the plugins are already loaded and enter both required parameters – function name and priority.
add_action( 'plugins_loaded', 'se334421_remove_plugin_filter' );
function se334421_remove_plugin_filter() {
remove_filter( 'woocommerce_cart_item_subtotal', 'WC_Subscriptions_Switcher::add_cart_item_switch_direction', 10 );
}
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?
- How to only hook on Single.php after content?
- Change Page’s Tag Using functions.php File
- How to disable Gutenberg editor?
- Edit plugin without hooks in functions.php
- WordPress apply_filters() Arguments Missing
- Removing user contact methods works from functions.php but not from a plugin
- Pass A Value From Outside To A Plugin Variable
- Is there any multiple filter/criteria plugin for wordpress? [closed]
- How to prepend to the_title for admin-side plugin’s use
- why does the add_action(‘the_content’) overwrite my page
- How to filter content post only on save
- Filter or action hook to insert content on admin pages before tag
- plugin_action_links_{$plugin_file} hook not in the main plugin file
- Creating search filter through plugin
- Add Fields with Sub-Fields to WP Job Manager
- merging an array to an existing array using add_filter
- What is the purpose of $merged_filters?
- Changing image URLs in media library
- WP Job Manager Category Drop-down; Change Placeholder Text Via Filter
- WordPress Social Login > Post to a users Facebook wall
- Is there a filter for get_post_custom()?
- Can I hook into get_avatar to supply a hash instead of an email?
- How do action and filter hooks understand where to look for the core function that we hooked our function to them
- How to append to title via functions.php for auto-posting plugin [duplicate]
- How to find the origin of a file upload from within wp_handle_upload?
- How to get the element ID from new menu list that added with add_filter()?
- White page by using filter template_include
- Filtering WooCommerce Orders by Category
- How to remove plugin metaboxes from edit.php
- Output content to the_content before a plugin does
- Is there a hook to Intercept al urls from a webpage and redirect to a page
- External Script Using WP – Hooks / Actions Not Working?
- How to change the name of the “edit my profile” link in the WordPress admin backend
- Redirect to another page using contact form 7? [closed]
- Template filter for custom taxonomy terms
- Using add_action before add_filter on a plugin?
- What exactly happens to function argument availability when using a filter?
- Check filter defined or not?
- remove_action not removing add_action from constructor
- How can I apply a WP filter on specific plugin version
- Editing wp-config.php
- How to use the pre_option filter before a plugin loads?
- WordPress: Add custom add_filter for custom functions
- Override a Plugin Function
- Can I filter a function created by a theme or a plugin?
- How to have free shipping for WooCommerce Membership members
- Hook for altering the content of all wp mails
- How to Use the Filter “sidebar_login_widget_form_args”
- is there a way to pass a parameter to a add_menu_page function?
- Looking for a filter to modify the months
- What’s the best way to echo out a filter variable?
- apply_filters(woocommerce_get_item_data, …) Causing errors when adding to cart
- How to convert Currency from USD to other IP Based currency in Php function
- post title not changing at post page
- Using OR Condition with facetwp facets
- How i remove specific script from header?
- Randomize post (and page) IDs on generation
- Redirect to a page while maintaining search query parameters without causing an infinite loop
- Making a list that can be filtered by category/tags
- Adding an item to an anonymous array inside a filter?
- How to use third-party SendGrid Email Validation API in Gravity Forms?
- taxonomy_template filter not working on pagination [duplicate]
- 500 Internal server error wp_handle_upload_prefilter
- How to Unhook actions/filters in within Class in plugin
- Nested Actions and Filters
- Modify function output in a plugin
- Using Filters to modify contect – DB query results alwats appear fist
- Customize plugin templates
- 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]
- Edit plugin filter
- trying to create simple plugin to filter categories from all authors
- 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()
- Filter the HTML content of plugin
- apply_filters to content but ignore shortcodes
- change output location of plugin function using a custom hook
- getpost content with all formatting for admin pages
- Filter for modifying image on upload
- Which filters or actions involve with index page for plugin?
- County Finder form/plugin?
- Add a filter to a different custom plugin
- How to add a filter conditionally based on page related Conditional Tags
- WP Members additional fields on user profile [closed]
- How to Add Extra Text In WordPress Title Before Post Publish
- How to add product thumbnail on orders list on backend?
- WordPress REST API filter on blank custom ACF
- FacetWP custom display based on post type [closed]
- Change social icon in twenty twenty three theme
- Removing filters with arguments set in a class
- How can we extent core/group or cover block?
- Customize WP Filter Hook
- How to display title, description etc in block images?