Here’s the exact code you can add to your child theme’s functions.php file to create a shortcode that displays the current year automagically:
functions.phpfunction show_current_year() { return date('Y');}add_shortcode('current_year', 'show_current_year');
In any Text Module (or wherever shortcodes are accepted), simply add this shortcode:
[current_year]
This will display the current year dynamically every year — for example, 2025.
Enjoy!