$name, 'available' => $available, ); if (!tinv_get_option('integrations', $slug)) { return; } if (!$available) { return; } /** * Gets data for the 'wishlist' column to use in the product table. * * @license GPL-3.0 */ class TINVWL_Product_Table_Data_Wishlist extends Abstract_Product_Table_Data { public function get_data() { return apply_filters('wc_product_table_data_wishlist', do_shortcode('[ti_wishlists_addtowishlist loop="yes"]'), $this->product); } } add_filter('wc_product_table_custom_table_data_wishlist', function ($data_obj, $product, $args) { return new TINVWL_Product_Table_Data_Wishlist($product); }, 10, 3);