wpseo_opengraph deprecated. How to remove things from OpenGraph now?
-
I used to have this piece of code to remove the published time from the opengraph (and meta tags). But it no longer works.
function remove_publish_date() { global $wpseo_og; remove_action( 'wpseo_opengraph', array( $wpseo_og, 'publish_date' ), 19); } add_action( 'wpseo_opengraph', 'remove_publish_date' );
in https://developer.yoast.com/blog/yoast-seo-14-0-adding-metadata/ it says to use Abstract_Indexable_Presenter do add more meta tags, but nothing how to remove or edit opengraph data.
It is not possible anymore?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘wpseo_opengraph deprecated. How to remove things from OpenGraph now?’ is closed to new replies.