Is there a way to copy specific text in the header to echo it elsewhere on a page?
Example to copy:
<meta property="og:image" content="http://PhotoUrl.jpg">
I would like to copy the URL of the image and then echo it on the same exact page.
Example to add elsewhere on page:
<?php echo $GLOBALS['PhotoUrl']; ?>
Unfortunately, I don't have control of this image variable and although I wish I could do get_meta_tags I understand this cannot be done on it's own page.
Thank you in advance for any suggestions!