Useful Functions
Addonify Wishlist has defined some useful helper functions that you may want to use. The helper functions could be found inside inc/addonify-wishlist-helper-functions.php file.
Some of the helper functions are as follows:
// Function to get all items in the compare. addonify_compare_products_get_compare_cookie(); // Function to get the numbers of items compare list count. addonify_compare_products_get_compare_cookie_count(); // Function to check if a product is in compare list. $product_id is required. addonify_compare_products_is_product_in_compare_cookie( $product_id ); // Function to check if compare list is empty. addonify_compare_products_is_empty_compare_cookie();