Source: https://divimundo.com/en/blog/copyright-year-wordpress-footer/
//Current year shortcode for copywrite. To apply use shortcode: [year] function year_shortcode() { $year = date('Y'); return $year; } add_shortcode('year', 'year_shortcode');