Snippets: Replace Page Header Subheading with Post Date

add_filter( 'wpex_post_subheading', function( $string ) {
	if ( is_singular( 'post' ) ) {
		return get_the_date();
	}
	return $string;
} );
All PHP snippets should be added via a child theme's functions.php file.