Skip to content

Instantly share code, notes, and snippets.

@dangoodman
Created April 5, 2019 21:06
Show Gist options
  • Save dangoodman/80065ff2adbf07697d83df4c29a56ed6 to your computer and use it in GitHub Desktop.
Save dangoodman/80065ff2adbf07697d83df4c29a56ed6 to your computer and use it in GitHub Desktop.
WooCommerce, Tree Table Rate Shipping: include non-shippable (virtual, etc) items.
<?php
// Paste everything below this line to your child-theme's functions.php file.
// Tree Table Rate Shipping: pass non-shippable (virtual, etc) items as well to shipping rules.
add_filter('trs_include_non_shippable_items', '__return_true');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment