Display Current Year
July 19, 2022
In functions.php
function currentYear(){
return date('Y');
}
In file
<p>
<?php echo currentYear(); ?>
</p>
July 19, 2022
functions.php
function currentYear(){
return date('Y');
}
<p>
<?php echo currentYear(); ?>
</p>