Wishlist::public_url()
Summary
Get the public URL to view the wishlist
Return
(string)
Source
File: src/BigCommerce/Accounts/Wishlists/Wishlist.php
public function public_url() { if ( ! $this->is_public() ) { return ''; } $url = add_query_arg( [ Wishlist_Request_Parser::LIST_PARAM => $this->list_id(), Wishlist_Request_Parser::TOKEN_PARAM => $this->token(), ], get_post_type_archive_link( Product::NAME ) ); /** * Filter the URL for a public wishlist * * @param string $url The wishlist URL * @param Wishlist $wishlist The wishlist object */ return apply_filters( 'bigcommerce/wishlist/public-url', $url, $this ); }