Created
June 15, 2023 06:36
-
-
Save codersaiful/121cc82af31f5eaabb71bbfda089237f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('wqpmb_show_validation',function($bool, $data){ | |
global $product; | |
if(!is_object($product)) return $bool; | |
if(is_object($product) && $product->get_type() === 'simple'){ | |
return $bool; | |
}else{ | |
return false; | |
} | |
return $bool; | |
},10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment