Created
January 5, 2022 18:49
-
-
Save digisavvy/fc3afbb4994df8af833524db70546e16 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place in Functions.php or a plugin | |
function year_shortcode() { | |
$year = date('Y'); | |
return $year; | |
} | |
add_shortcode('year', 'year_shortcode'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment