-
-
Save doozy/f8fd3a1ef4ba514f398e71f317fb6c88 to your computer and use it in GitHub Desktop.
[wishlist] Get wishlist link with SHAREKEY
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want to make a link with this, it works with;
<a href="<?php echo $wlisturl; ?>">
:)