Duplicate OG tag | WordPress.org

Hello @atta-ur-rehman,

Thank you for contacting Rank Math support.

You can add the following hook to your WordPress site in order to remove all OpenGraph tags (og:tags) added by Rank Math on your site:

/**
* Hook to remove og:tags
*/
add_action( 'rank_math/head', function() {
remove_all_actions( 'rank_math/opengraph/facebook' );
remove_all_actions( 'rank_math/opengraph/twitter' );
});

Please follow the URL below to learn how you can add filters/hooks to your site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/

Hope that helps.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer