$name, 'available' => $available, ); if (!tinv_get_option('integrations', $slug)) { return; } if (!$available) { return; } if (!function_exists('tinv_wishlist_metaprepare_woocommerce_square')) { /** * Set description for meta WooCommerce Square * * @param array $meta Meta array. * @param integer $product_id Product ID. * @param integer $variation_id Product variation ID. * * @return array */ function tinv_wishlist_metaprepare_woocommerce_square($meta, $product_id, $variation_id) { foreach (array_keys($meta) as $key) { if (strpos($key, 'nds-pmd') === 0) { unset($meta[$key]); } } return $meta; } add_filter('tinvwl_wishlist_item_meta_post', 'tinv_wishlist_metaprepare_woocommerce_square', 10, 3); }