Home / Admin / Current Year Shortcode
Duplicate Snippet

Embed Snippet on Your Site

Current Year Shortcode

Adding the option to use the current year [year] shortcode on your website on any website, especially for the footer design section.

Code Preview
php
<?php
function year_shortcode() {
  $year = date('Y');
  return $year;
}
add_shortcode('year', 'year_shortcode');

Comments

Add a Comment