Home / Admin / Current Year
Duplicate Snippet

Embed Snippet on Your Site

Current Year

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

Comments

Add a Comment