• Resolved Make carlos

    (@make-carlos)


    Hi

    if ( ! $this->can_user_add_to_wishlist() ) {
    				throw new YITH_WCWL_Exception( apply_filters( 'yith_wcwl_user_cannot_add_to_wishlist_message', __( 'The item cannot be added to this wishlist', 'yith-woocommerce-wishlist' ) ), 1 );
    			}

    The item cannot be added to this wishlist -> How can we change this message ? there is no option in backend to change. Please advice.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Antonio La Rocca

    (@therock130)

    Hi there

    there is no option in backend to change

    But there is a filter 😉

    add_filter( 'yith_wcwl_user_cannot_add_to_wishlist_message', function() {
        return 'YOUR CUSTOM MESSAGE HERE';
    } );
    

    Try to add the following snippet of code at the end of functions.php file of your theme or child theme
    You can of course change YOUR CUSTOM MESSAGE HERE with anything you prefer

    Thread Starter Make carlos

    (@make-carlos)

    Hi
    Perfect!
    Thanks

    Plugin Support Antonio La Rocca

    (@therock130)

    You’re welcome

    If you enjoy our plugin and our work, please don’t forget to share some love back and leave us a 5 star review; it really makes the difference 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Need to change message.’ is closed to new replies.