How to avoid WhatsApp issue with og:image tag?

In some cases, WhatsApp doesn’t show og:image and sometimes you can avoid it by pushing og tags fairly close to the top of the <head>.

If you have a similar issue you can change the priority for wp_action.

Use this code to change it to 0 (default is 9).

add_filter( 'og_wp_head_priority', '__return_zero' );