WordPress: Auto Update Copyright Year

I use this snippet in the footer of my WordPress sites. The year automatically updates. So you never have to worry about changing it every year.

// Displays "© 2019"
© <?= date('Y') ?>

// Displays "© 2013-2019 MyCompanyName" <?php call_user_func(function($y){$c=date('Y');echo $y.(($y!=$c)?'-'.$c:'');}, 2013); ?> MyCompanyName.

1 thought on “WordPress: Auto Update Copyright Year”

  1. Mitch,
    I could not see where to leave a comment on TechniPages. I tried your tip for resizing batch photos. It worked! Thanks so much.


Leave a Reply to Barbara Spaulding Cancel reply