With what hook do I remove WooCommerce existing Product Data Tab form fields?

You find the code for the general tab in the file includes/admin/meta-boxes/views/html-product-data-general.php. In this file WooCommerce defined some do_action hooks. Maybe your plugin used one of them. Hooks: woocommerce_product_options_pricing woocommerce_product_options_downloads woocommerce_product_options_tax woocommerce_product_options_general_product_data

WooCommerce Order page

You may want to use the hook manage_posts_custom_column see codex for more informations. https://codex.wordpress.org/Plugin_API/Action_Reference/manage_posts_custom_column add_action(‘manage_shop_order_posts_custom_column’ , ‘wpse_306476_order_custom_column’); function wpse_306476_order_custom_column($colname) { global $the_order; // Get the order if($colname == ‘customer_message’) // You can also use a switch here { $message = $the_order->get_customer_note(); // Do what you have to do here } elseif($colname == ‘order_note’) // For … Read more

add product thumbnail to checkout page only and include variation name

You can use the conditional checks to simply build a new return value for the filter. So run the filter once and put all your code in there. Your second example doesn’t really make sense because no matter what, you’re returning $name, can you explain that more? add_filter( ‘woocommerce_cart_item_name’, ‘cart_variation_description’, 20, 3); function wpse306625_cart_variation_description( $name, … Read more