$products, ) ) ); } } if ( ! function_exists( 'addonify_wishlist_page_wishlist_products_template' ) ) { /** * Render wishlist content. * * @since 2.0.6 * * @param array $products Product IDs in the wishlist. */ function addonify_wishlist_page_wishlist_products_template( $products = array() ) { Addonify_Wishlist_Template_Loader::load_template( 'wishlist-page/wishlist-products.php', apply_filters( 'addonify_wishlist_page_loop_args', array( 'wishlist_product_ids' => $products, ) ) ); } } if ( ! function_exists( 'addonify_wishlist_table_product_row_template' ) ) { /** * Renders HTML template of product row displayed in table in the wishlist page. * * @since 2.0.6 * * @param object $product WC_Product object. */ function addonify_wishlist_table_product_row_template( $product ) { if ( $product instanceof WC_Product ) { $product_id = $product->get_id(); $product_link = $product->get_permalink(); $product_name = $product->get_name(); $product_image = $product->get_image( array( 60, 60 ) ); $product_price_html = $product->get_price_html(); $product_avaibility = addonify_wishlist_get_product_avaibility( $product ); ?>