Created
April 14, 2020 12:46
-
-
Save 1naveengiri/01ceb393ea05cb2b8f7f09f468da35b2 to your computer and use it in GitHub Desktop.
edit Yoast SEO meta title, description, og:title, og:Description,
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
<?php | |
// og:title | |
add_filter('wpseo_opengraph_title', 'wpseo_opengraph_title_callback'); | |
function wpseo_opengraph_title_callback( $title ){ | |
// do something here. | |
return $title; | |
} | |
// og:description | |
add_filter('wpseo_opengraph_desc', 'wpseo_opengraph_desc_callback'); | |
function wpseo_opengraph_desc_callback( $ogdesc ){ | |
// do edit it here. | |
return $ogdesc; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment