| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Current Year Shortcode VICT |
| 4 |
* Version: 1.18 |
| 5 |
* Description: A shortcode to display the current year. |
| 6 |
* Requires at least: 6.0 |
| 7 |
* Requires PHP: 8.0 |
| 8 |
* Author: Voordelig ICT |
| 9 |
* Author URI: https://voordeligict.nl |
| 10 |
* License: GPLv2 or later |
| 11 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 12 |
*/ |
| 13 |
|
| 14 |
function vict_showYear() { |
| 15 |
$year = gmdate('Y'); |
| 16 |
return $year; |
| 17 |
} |
| 18 |
add_shortcode('vict_year', 'vict_showYear'); |
| 19 |
|
| 20 |
?> |