Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
If you want to remove all the Twitter meta tags from your website then you can try to add the following filter on your site:
add_action( 'rank_math/head', function() {
remove_all_actions( 'rank_math/opengraph/twitter' );
});
Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/
Hope that helps and please don’t hesitate to let us know if you have any other questions.
Thank you.
I don’t like this. It should be able to toggle easily in rankmath setting since this function should optional but embeded
Hello,
At the moment, our social meta tags are added there by default with no option to remove it from our settings. Only by using our filter code.
With that said, if this is something we can improve in the future, we will surely let you know.
Thank you so much for your input.
Don’t hesitate to get in touch with us if you have any other questions.
it doesn’t work. the code shows on my header. i followed exactly as the instruction.

please check the screenshot. i’ve created rankmath.php file and paste the code in but the code appears on the header of my pages.
https://imgur.com/a/ALgWYom
Hello,
This happens when you have not included the PHP opening tag <?php
. It should look like this when applying it via the rank-math.php file (notice the first line)

Hope that helps.
Thank you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.