Viewing 1 replies (of 1 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    we hope you’re doing well!

    If you have the possibility to add a shortcode, you can use the following code inside the functions.php file of your active theme to print the url of your wishlist:

    if ( class_exists( 'YITH_WCWL_Wishlist_Factory' ) && !function_exists('yith_wcwl_print_share_url')) {
        function yith_wcwl_print_share_url( $atts ) {        
            $wishlist   = YITH_WCWL_Wishlist_Factory::get_default_wishlist( false );
            $share_url  = $wishlist->get_url();
            echo esc_html( $share_url );
        }
        add_shortcode('yith_wcwl_share_url', 'yith_wcwl_print_share_url');
    }

    If you have any other questions, feel free to contact us.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Wishlist Share Url’ is closed to new replies.