Snippets Collections
function current_year_shortcode() {
    $current_year = date('Y');
    return $current_year;
}
add_shortcode('current_year', 'current_year_shortcode');
star

Sat Mar 16 2024 18:56:59 GMT+0000 (Coordinated Universal Time)

#current-year #current-date

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension