Created
February 8, 2022 16:09
-
-
Save Jehu/80b8b41748f8f98522354cf5dae14f5b to your computer and use it in GitHub Desktop.
WordPress - Jahreszahl Shortcode
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
<?php | |
function year_shortcode () { | |
$year = date_i18n ('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