post_type); $post_type_obj = get_post_type_object(get_post_type()); $time_string = ''; if ('post' === $post_type->name || $post_type->has_archive) { $time_string = ''; if (get_the_time('U') !== get_the_modified_time('U')) { $time_string = ''; } $time_string = sprintf( $time_string, esc_attr(get_the_date('c')), esc_html(get_the_date()), esc_attr(get_the_modified_date('c')), esc_html(get_the_modified_date()) ); $time_string = '' . $time_string . ''; } ?>