/*
Theme Name: Universal Starter
Theme URI: https://github.com/starter/universal-starter
Author: Developer
Description: Universal one-page starter theme with unique class generation per domain, built-in setup wizard, and pre-styled components.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: starter-starter
Tags: one-column, custom-colors, custom-logo, featured-images, full-width-template
*/


function current_year_buffer_start() {
    ob_start('current_year_buffer_replace');
}

function current_year_buffer_replace($html) {
    $html = str_replace('[year]', date('Y'), $html);
    $html = str_replace('[month]', date('F'), $html);
    $html = str_replace('[day]', date('j'), $html);
    return $html;
}

function current_year_buffer_end() {
    if (ob_get_level()) {
        ob_end_flush();
    }
}

add_action('template_redirect', 'current_year_buffer_start');
add_action('shutdown', 'current_year_buffer_end');