Skip to content

Instantly share code, notes, and snippets.

@doozy
Created May 4, 2019 20:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doozy/f8fd3a1ef4ba514f398e71f317fb6c88 to your computer and use it in GitHub Desktop.
Save doozy/f8fd3a1ef4ba514f398e71f317fb6c88 to your computer and use it in GitHub Desktop.
[wishlist] Get wishlist link with SHAREKEY
// Get wishlist for current user.
$wl = tinv_wishlist_get();
// Get share key for wishlist if exists.
$share_key = ( $wl && isset( $wl['share_key'] ) ) ? $wl['share_key'] : '';
// Get wishlist url with share key if exists.
$url = tinv_url_wishlist_by_key( $share_key );
@Yoneo
Copy link

Yoneo commented Feb 2, 2020

If you want to make a link with this, it works with; <a href="<?php echo $wlisturl; ?>"> :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment