Hello,
Thank you for reaching out to us with your query about hiding the author meta tag completely from all pages on all types of shares. To achieve this, you can use the following code snippet in your theme’s functions.php file:
add_filter('rank_math/opengraph/facebook/og_author', function ($author) {
return '';
});
add_filter('rank_math/opengraph/twitter/twitter_creator', function ($creator) {
return '';
});
The code snippet above will remove the author meta tag not only for Facebook but also for Twitter shares. By adding these filters, you can ensure that the author tag is hidden from all pages on all types of shares.
If you have any further questions or need additional assistance, please feel free to let us know.
Thank you!
Sources:
How to Prevent Modified Date of Your Blog Posts from Being Updated » Rank Math
How to Disable All Rank Math Generated SEO Tags » Rank Math
How to Make Your Theme Rank Math Compatible » Rank Math
How Does the Author Schema Entity Work? » Rank Math
SEO Reports Delivered Straight to You (And Your Clients) via Email With Rank Math » Rank Math
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
This is something that happens only with Discord. If you share links to any other Social platform then the link preview will not have the author info but on Discord, you will see the author.
We do not have an option to disable this from the settings. However, you can try the filter in this thread and see if that fixes the issue: https://wordpress.stackexchange.com/questions/369151/how-to-remove-author-name-and-link-from-a-shared-link-preview
Here’s the code from the thread:
add_filter( 'oembed_response_data', 'disable_embeds_filter_oembed_response_data_' );
function disable_embeds_filter_oembed_response_data_( $data ) {
unset($data['author_url']);
unset($data['author_name']);
return $data;
}
Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/
Let us know how it goes. Looking forward to helping you.
Thank you.
That seems to do it, thanks!
Would this affect SEO in any kind of way?
Hello,
It shouldn’t affect your SEO since it only removes the author URL and name from the oembed preview.
Hope that helps and please don’t hesitate to let us know if you have any other questions.
Thank you.