This code will automatically update the total wishlist count without that page reloading. Add the below code to the functions.php file
if ( defined( 'YITH_WCWL' ) && ! function_exists( 'yith_wcwl_get_items_count' ) ) {
function yith_wcwl_get_items_count() {
ob_start();
?>
<a class="link-wrap" href="<?php echo esc_url( YITH_WCWL()->get_wishli