Try filtering the output of that function to remove that column, or set it to an empty string. e.g.
function wpse_120798_item_totals($total_rows, $order) {
foreach ($total_rows as &$row) {
unset($row['value']); // or: $row['value'] = '';
}
return $total_rows;
}
add_action('woocommerce_email_before_order_table', function() {
add_filter('woocommerce_get_order_item_totals', 'wpse_120798_item_totals');
});
add_action('woocommerce_email_after_order_table', function() {
remove_filter('woocommerce_get_order_item_totals', 'wpse_120798_item_totals');
});
Related Posts:
- WordPress plugin from own server
- How to avoid plugin name conflicts from the upgrade notifier?
- Remove WordPress Toolbar buttons
- WP showing “warning: call_user_func_array()”, What to do?
- How can I dequeue a Plugin Stylesheet?
- Can a plugin cause permanent damage?
- Adding an admin page – OOP approach not working
- How can I pass a variable to wp_ajax action?
- Declare a function before plugin does on the theme functions.php file
- Moving image attachment from post to another?
- How to call a function in wordpress plugin from another site
- Activate Plugin which is in subfolder?
- Under which circumstances is the .maintenance file not deleted?
- Autoload via composer in plugin interference
- How can i change an image’s author?
- WordPress plugin form not saving data
- NextGen Gallery – automatically create gallery sub page?
- Plugin exceeds memory limit
- How do I make images clickable so as to enlarge them using lightbox?
- FacetWP group listings by custom field [closed]
- Plugin Paths Issue
- Woocommerce plugin for minimum order and add-to-card-step
- UnInstallation of a Plugin from a developers perspective – The correct and clean method
- Change wordpress current_time function to different timezone
- Load custom PHP on a custom URL via a plugin
- Remove Duplicator plugin from admin menu if not an administrator
- Plugin for a text modal box [closed]
- Restrict media upload size by format
- Creating custom HTML pages
- How to display the “ratingValue” and “ratingCount” values generated by the KK Star Ratings plugin into my page’s recipe ld+json schema
- Two problems on my WordPress installation [closed]
- Frontent user submit and view content [closed]
- Center and hide overflow of WP toolbar custom links
- WordPress get_avatar function not correct working
- Make change in media library affect images in published articles
- How to add Wrapper Div/container element around WordPress Widget Content
- Can I use Symfony components in a plugin that I want to submit to the WordPress plugin repository?
- UpdraftPlus installed malware – scared to download or update plugins now! [closed]
- Duplicate New User Registration notices (BuddyPress and bbPress both installed)
- Is there any plugin which enables users to rate comments in thumbs up-down way?
- Plugin Repostitory Questions
- Free paypal cart solution [closed]
- Get site url and updates data, then use them
- How to update a local development plugin on a separate machine
- Error When Trying To Login [closed]
- unable to remove malware from wp website [closed]
- How do I convert my WordPress website to be domain agnostic?
- Get Image Having the ID [closed]
- Show media-uploads to all users
- How to create plugin auto create page wordpress?
- Scrape a webpage for image and add it to post
- Block wordpress style for my plugin admin page
- I want to reset user’s post meta after successfully login
- Widget Screen Locked
- How to make a slider hearder?
- Warning: Attempt to read property “ID” on null in C:\xampp\htdocs\Nnamdi1\wp-content\plugins\elementor\core\base\document.php on line 250 [closed]
- Adding CASE in WP_Query
- why I cannot activate elementor plug in?
- How to find the following specific WordPress variables?
- Need help creating asynchronous data scraper in WordPress
- Load extra post content from plugin, after load basic post content
- i need to make custom cron_schedule with custom interval time as a parameter into a custom payment gateway plugin wordpress
- Trying to get property ‘ID’ of non-object in /wp-includes/class-wp-query.php on line 4044
- WordPress asks to update a plugin already updated
- Why do I need to reload the page for WordPress to see the new custom field added with jQuery
- How to store a secret for a plugin inside public_html
- WordPress:Custom banner from psd trying to cut out a button area so the website link can be clicable not working
- Global $wp_admin_bar always returns null
- Edit plugin’s HTML output with Hooks
- Shortcode generated widget to appear on same line as heading text and button
- How to find out programmatically whether any cache plugin is installed in the WordPress website?
- Show custom taxonomy in theme
- errno: 150 “Foreign key constraint is incorrectly formed” [closed]
- Implementation to count page visits of unique visitors based on a cookie
- How to prevent encoding plugin HTML output to entities?
- How to differently style pages that display posts of different category in WordPress?
- WordPress FTP/media directory permissions problem?
- Social sharing plugin directing to blank page after post sharing
- accessibility of an object created in a plugin, from the header
- How to build a navigation menu for long-form texts like this one
- Like/Dislike Bar not working when updating
- how to change/remove/hide menu under installed plugins
- Simple fields plugin WordPress show repeatable file field
- How to check my WordPress.org site MySQL queries generating items?
- Screen Options drop-down does not show
- onclick open window [closed]
- how to make a plugin secure, so any one if changes something in plugin, it just disables it self and notify us on server? [closed]
- WooCommerce – Adding notice above products on Shop Home [closed]
- Detect if you’re in the “Frontend Editor” mode in Visual Composer WordPress [closed]
- Place a widget side by side rather than on top of each other
- How to create a nameplate extension? [closed]
- WP asking for ftp credentials when deleting plugin
- How can I view the responses of contact forms on different sites in one panel or elsewhere? [duplicate]
- Page with redirect
- How to add a simple design in classic editor plugin creating post page through another Wp plugin
- Why is my Gutenberg block not saving and rendering the chessboard?
- Is it possible to use Classes between WordPress plugins with separate namespaces?
- refresh media library item
- Similar hook to ‘init’ for when plugin page loads
- Elementor wp_register_script showing file when i not use ‘wp_enqueue_script’