If you want the Year ‘2022’ to be updated to the current year automatically in your WordPress footer put the following snippet in functions.php file. Use [year] shortcode in your widget where you want the year to be shown.

 
function year_shortcode () {
$year = date_i18n ('Y');
return $year;
}
add_shortcode ('year', 'year_shortcode');
 

Leave a Comment

You must be logged in to post a Review.