Duplicate Snippet
Embed Snippet on Your Site
Copyright & Current Year Shortcodes
Add this snippet to the functions.php file in your theme or plugin.
Type [year] in any text block to return the current year.
Type [copyright] in any text block to return the name of your website + the copyright symbol and current year.
Example output: "My Website Title © 2024."
Code Preview
php
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Comments