-
Hello Rank Math,
I have added the following to functions.php to remove the dateModified and datePublished structured data datesadd_filter( “rank_math/snippet/rich_snippet_article_entity”, function( $entity ) {
unset( $entity[‘dateModified’] );
unset( $entity[‘datePublished’] );
return $entity;
});The datePublished and dateModified are successfully removed from @type”:”WebPage”, however, they are not removed from @type”:”Article.
Can you please confirm if additional code is required and if so, please provide this so that the dates are removed completely from the HTML source code?
Thank you
The ticket ‘Rank Math Structured Data (dateModified)’ is closed to new replies.