• Hi,

    After the latest bulk updates on my site, the deprecation error appeared:

    Deprecated: wpseo_opengraph is deprecated since version 14.0! Use wpseo_frontend_presenters instead.

    I found the wpseo_opengraph hook in polylang > modules > plugins > wpseo.php, line 38:

    
    add_action( 'wpseo_opengraph', array( $this, 'wpseo_ogp' ), 2 );
    

    so, I changed it to:

    
    add_action( 'wpseo_frontend_presenters', array( $this, 'wpseo_ogp' ), 2 );
    

    The error is gone, however, I’m not sure that action hooked does what it needs to do …

    The wpseo_opengraph action is deprecated since Yoast SEO v.14.0. (August 2019.)

    I hope you’ll consider adding a fix for this for the next Polylang update! ??

    Thanks
    Have a great day

    • This topic was modified 4 years, 6 months ago by Micemade.
  • The topic ‘Deprecation error notice’ is closed to new replies.