79670694

Date: 2025-06-18 13:17:09
Score: 1
Natty:
Report link

I found this to be useful for getting the count of products. The count_all_items function on the YITH_WCWL_Wishlists class.

So something along the lines of:

$user_wishlist = yith_wcwl_wishlists();
$wishlist_count = $user_wishlist->count_all_items();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ben Rich