Year Shortcode

language: PHP
license: Other

Code for Snippet:

function year_shortcode() {
  $year = date('Y');
  return $year;
add_shortcode('year', 'year_shortcode');
comments powered by Disqus


Source Site:

Tags: Wordpress

Link to this snippet:

Download to Code Collector

To use the direct link to your snippet on either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 527
Date Added: 2015-10-12 10:12:45
Last Modified: 2015-10-12 04:21:28

Web Analytics