Woocommerce support sent me the solution of my problem:
function unregister_parent_hook() {
if ( function_exists( 'wc_dve' ) ) {
$instance = wc_dve();
remove_action( 'woocommerce_after_order_notes', array( $instance, 'exemption_field' ) );
}
}
Related Posts:
- Does an activated plugin automatically mean its methods are available to other WP functions?
- Use PHP Class in WordPress functions
- How to execute add_action() function from custom plugin to Crontrol plugin or do_action()?
- what is correct way to hook when update post
- add_action in namespace not working
- Enforcing password complexity
- How to set custom cookies before output
- Check php version before theme activation
- Getting the action’s tag name within the action
- How can I remove “Proudly powered by WordPress” from twentyeleven without modifying footer.php?
- Action ‘save_post’ not working for quick edit
- Can i check if user is doing any ajax request?
- Best way to extends core classes in theme?
- add_meta_boxes action with refresh on save
- Use wc_enqueue_js only on specific pages – nested add_action
- How to Remove a Filter from the Admin List Table?
- OOP Plugin Development. Including external object
- Insert post without actions/hooks
- Hooking new functions to actions + passing parameters
- Find variables available at a given hook
- Why do filters/actions require an argument count?
- WP Plugin + OOP: Adding Menu Page doesn’t create required effect
- Initiate only latest version of a class
- How to show a users bio on a page
- Override a function defined in wp-includes/comment-template.php
- Nested “do” and “add” Actions is possible?
- Change order of custom submenu link in WP Admin?
- Extend Woocommerce Widget Class – WC_Widget_Product_Categories
- Undefined method class::construct() when creating a plugin
- How can I access string value in an array?
- Need oop for wordpress theme? [duplicate]
- Usage of call back function of add_meta_box()
- Why is a wp function used in current PHP namespace’s callback not resolved to global scope?
- How to catch wordpress post ID when it’s published
- WordPress redirect redirecting too many times or not at all
- Cant register rest routs from class instance
- Can not add admin notices from the edit_user_profile_update hook (notices not being displayed)?
- How to pass argument to add_action while the method is inside a class?
- Display attribute on shop page after the title
- Check class_exists before class definition / Doxygen problem
- Action Hook Inside WordPress Plugin Shortcode
- PHP Helper Class to create shortcodes
- Dynamically adding filters
- Woocommerce custom Plugin in wordpress [closed]
- Class property seems to lose scope, attached to save_post action?
- How to pass hook variable to function?
- Get options from database using php class
- Change image data durgin upload
- OOP PHP class extends TwentyTwenty_Customize in Child Theme
- add_action in namespace not working
- Call to “admin_notices” hook from a static method
- WordPress Post Block Element not properly parsed with the_content filter
- Remove an action created by a Gravity Forms add-on
- remove_action from parent theme using child theme functions.php
- WordPress How do I pass a variable from one add_action to another?
- can I extend the WP_Query class to deal with ‘duplicate’ posts created by joining to wp_posts?
- I want to hide “sold by” on certain pages with id page 43
- Get original value in save_post action hooka
- Access variable from another class that was passed in constructor
- How do I remove an action hook inside a class that is called by another class?
- How to add typehints to function in functions.php when argument is an object?
- Proper use of Output Buffer for a whole php clas
- add_action in wp_head accessible from class
- Get post content inside plugin class method
- in the post admin, is it possible to make the post title input disabled using php?
- Hook into all password resets in WordPress and get password before hashing?
- Why should I need to add init action to include PHP file to WordPress Plugin?
- remove_action() not working in page template – Genesis
- Unable to pass arguments to function used in add_action
- How to hook into the subscriber /wp-admin/index.php page?
- Calling WordPress hook from within a class: call to undefined function error
- wordpress form action page not found
- Add two or multiple functions in WordPress Post or Page
- Submit to itself don’t work
- PHP calling function within a class
- What is wrong with assigning values to a WP_List_Table class?
- WordPress HTML Helper
- calling a function from a class in your template
- Property value of null when value is assigned inside a method hooked to the wp action hook
- At what point during a typical request does the $wpdb object become available?
- How does add_action ‘comment_post’ work?
- Highlight posts currently being edited on multiple editor site?
- Custom action on comment post
- WordPress Plugin Receive a Link
- How to add custom checkout field in user details mail template
- Issues separating my Plugin pages into different files
- Cannot modify header information – headers already sent
- Fix incorrect related posts code snippet
- $_html is empty when var dumped
- Why a class property becomes empty?
- How to change wp-admin and wp-login urls
- How to sort custom sortable column by custom table value
- Is there a hook that I can use when a fatal error occurs?
- Execute wp_after_insert_post after the permalink is customized
- Too few arguments – wp_login action
- Show post in elementor based on views and specific category with query id feature in elementor
- $wpdb->insert writes a record twice for some reason, when my custom developed plugin calls my class function once
- Disable RSS /feed/ endpoints on posts without disabling RSS overall
- Unable to remove action from parent theme via child theme
- Using OOP in WordPress Plugin Development