Last active
September 15, 2016 23:20
-
-
Save yasircs4/8915bc117741babc084d80b64583106a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
https://developers.facebook.com/tools/debug/sharing/ | |
/** | |
* Override Jetpack's default OpenGraph image. | |
* Standard is blank WordPress image (https://s0.wp.com/i/blank.jpg). | |
* Christoph Nahr 2015-07-07 | |
*/ | |
add_filter( 'jetpack_open_graph_image_default', function() { | |
return 'your image url'; | |
}); | |
// remove jetpack open graph tags | |
remove_action('wp_head','jetpack_og_tags'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment