my_wishlist_before_loop

Add this code to the Theme’s function.php file to add some custom HTML before the item loop in your “my wishlist” page.

add_action('my_wishlist_before_loop', 'my_wishlist_before_loop_20201908', 5, 2);

function my_wishlist_before_loop_20201908($args, $wishlist_query){

    //echo '<pre>'.var_export($args, true).'</pre>';

    ?>
    <span>Custom HTML here</span>
    <?php
}
my_wishlist_before_loop 1