Outputs the current site-local year for copyright lines, reusable blocks, and footer templates.
add_shortcode( 'current_year', 'wpfolks_current_year_shortcode' );
function wpfolks_current_year_shortcode() {
return esc_html( wp_date( 'Y' ) );
}