I would like to add the following code in the header, but without editing the header.php (easy way) because I will lose it at the next template update.
The wp_head hook will place it inside the header, you can also use the Display Rules to assign where you want to output the meta instead of including the conditional in your code.
I found that incredibly complex.
I did try but the meta was put inside the body when I was expecting it to be at the very top of the <header>.
I will keep my change in the header.php as it works fine.
Thanks anyway.