Hello,
I am using the following code to show the last updated date on my WordPress post. Will this code also show the latest updated date on the Google Search Engine Results Page (SERP) once the WordPress post is updated? Could you please verify if this code is correct as per the standards? Thanks!
add_filter( ‘generate_post_date_show_updated_only’, ‘__return_true’ );
add_filter( ‘generate_post_date_output’,’tu_add_to_post_date’ );
function tu_add_to_post_date( $output ) {
return ‘<span>Last Updated on </span>’ . $output;
}