PluginProbe
Current Year Shortcode VICT / trunk
Current Year Shortcode VICT vtrunk
1.21 trunk 1.18 1.19 1.20
current-year-shortcode-vict / current-year-shortcode-vict.php

current-year-shortcode-vict.php in Current Year Shortcode VICT trunk, at current-year-shortcode-vict.php

22 lines 513 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Current Year Shortcode VICT
4 * Version: 1.21
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 if (!defined('ABSPATH')) {
15 exit;
16 }
17
18 function vict_current_year_shortcode() {
19 return current_time('Y');
20 }
21
22 add_shortcode('vict_year', 'vict_current_year_shortcode');