$name, 'available' => $available, ); if (!tinv_get_option('integrations', $slug)) { return; } if (!$available) { return; } if (defined('WCZP_PLUGIN_NAME')) { /** * Set description for meta Check Pincode/Zipcode for Shipping Woocommerce * * @param array $meta Meta array. * @param array $wl_product Wishlist Product. * @param \WC_Product $product Woocommerce Product. * * @return array */ function tinv_wishlist_item_meta_wczp($item_data, $product_id, $variation_id) { foreach (array_keys($item_data) as $key) { if (strpos($key, 'wczp') === 0) { unset($item_data[$key]); } } return $item_data; } add_filter('tinvwl_wishlist_item_meta_post', 'tinv_wishlist_item_meta_wczp', 10, 3); }