This is a simple WordPress plugin that adds the current year to elements with the data-current-year
attribute.
- Add the
data-current-year
attribute to any HTML element where you want to display the current year. - The plugin will automatically replace the value of the
data-current-year
attribute with the current year when the page loads.
<p data-current-year>© Example Website</p>
<p data-current-year>2023</p>