how to edit video schema upload date

[ad_1]

Hello @mahdisa,

Thank you so much for getting in touch.

You can make use of our Schema template to apply the variable you mentioned globally but our Schema template is only available in our PRO version.

If you wish to make use of the filter, you may refer to this code instead:
add_filter( "rank_math/snippet/rich_snippet_videoobject_entity", function( $entity ) { $entity['uploadDate'] = 'YOUR_DATE_HERE'; return $entity; }); add_filter( "rank_math/snippet/rich_snippet_article_entity", function( $entity ) { $entity['datePublished'] = 'YOUR_DATE_HERE'; $entity['dateModified'] = 'YOUR_DATE_HERE'; return $entity; });

You may refer to this guide on how to add filters to your website:

Hope that helps.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer