-
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
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
The ticket ‘Rank Math Structured Data (dateModified)’ is closed to new replies.