Created
May 21, 2014 18:36
-
-
Save scofennell/fd689ac4f4468235ff77 to your computer and use it in GitHub Desktop.
Function to add featured image to open graph tags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sjf_def_og_image(){ | |
echo' | |
<meta property="og:image" content="'.sjf_deh_get_image_src().'" /> | |
'; | |
} | |
add_action('wp_head', 'sjf_def_og_image'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment