You appear to be a bot. Output may be restricted
Description
Prints HTML with meta information for the current post-date/time.
Usage
$void = twenty_twenty_one_posted_on();
Parameters
Returns
void
Source
File name: twentytwentyone/inc/template-tags.php
Lines:
1 to 16 of 16
function twenty_twenty_one_posted_on() { $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>'; $time_string = sprintf( $time_string, esc_attr( get_the_date( DATE_W3C ) ), esc_html( get_the_date() ) ); echo '<span class="posted-on">'; printf( /* translators: %s: Publish date. */ esc_html__( 'Published %s', 'twentytwentyone' ), $time_string // phpcs:ignore WordPress.Security.EscapeOutput ); echo '</span>'; }