Browse Source

If the post is not a product, don't try to process it further

master
Sam Black 3 years ago
parent
commit
462fc8279e
Signed by: samwwwblack GPG Key ID: 0FF0223994EA47D8
  1. 2
      quantities-and-units.php

2
quantities-and-units.php

@ -208,6 +208,8 @@ class WC_Quantities_and_Units {
// Get the product
$pro = wc_get_product( $post );
if (!$pro) { return; }
// Check if variable
if ( $pro->is_type('variable') ) {

Loading…
Cancel
Save