Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
Please note that Google picks and shows the date that they found in the content itself and this is something an SEO plugin cannot fully control. But you can follow this guideline which will help you to understand the situation better and you can apply the filters on your site to remove the visible dates added by Rank Math: https://rankmath.com/kb/remove-dates-from-search/
However, if you want to change the article:published_time, article:modified_time, and og:updated_time meta properties then you can use the following fiters on your website:
//Change og:updated_time
add_filter( "rank_math/opengraph/facebook/og_updated_time", function( $content ) {
$content = '2023-09-15T14:49:47+06:00'; //change here
return $content;
});
//Change article:published_time
add_filter( "rank_math/opengraph/facebook/article_published_time", function( $content ) {
$content = '2023-09-15T14:49:47+06:00'; //change here
return $content;
});
//Change article:modified_time
add_filter( "rank_math/opengraph/facebook/article_modified_time", function( $content ) {
$content = '2023-09-15T14:49:47+06:00'; //change here
return $content;
});
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.
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.