Script to Automatically Update Copyright Year in WordPress and CMS of Choice

Here is a script you can add to your WordPress footer that automatically updates the copyright year of your website:

©<script type="text/JavaScript">document.write(new Date().getFullYear());</script> Site Name | Site Address | Site Phone

Copy and paste the above script to your WordPress theme’s footer to automatically update its copyright year to the current year.