Home / Admin / Copyright Year Shortcode
Duplicate Snippet

Embed Snippet on Your Site

Copyright Year Shortcode

Add shortcode to automatically update the copyright year. [year]

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

Comments

Add a Comment