Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WordPress - Jahreszahl Shortcode
<?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