Remove action from a plugin class
I did it using this function remove_filters_with_method_name( ‘woocommerce_after_order_notes’, ‘checkout_consent_checkbox’, 10 ); function remove_filters_with_method_name( $hook_name=””, $method_name=””, $priority = 0 ) { global $wp_filter; // Take only filters on right hook name and priority if ( ! isset( $wp_filter[ $hook_name ][ $priority ] ) || ! is_array( $wp_filter[ $hook_name ][ $priority ] ) ) { return false; … Read more