Skip to content

Instantly share code, notes, and snippets.

@morgyface
Last active January 22, 2019 17:54
Show Gist options
  • Save morgyface/e273d4d3470d406dffee40e12105c93c to your computer and use it in GitHub Desktop.
Save morgyface/e273d4d3470d406dffee40e12105c93c to your computer and use it in GitHub Desktop.
WordPress | Dynamic copyright with current year and site title plus tagline
@morgyface
Copy link
Author

Updated in early 2018, now available as a function.
Example usage:
<p><?php echo copyright( '2018' ) ?>. All Rights Reserved.</p>

@morgyface
Copy link
Author

Added a ternary operator version. Useful for templating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment