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

Info

Source Site:

http://www.codecollector.net/view/4F02B560-360B-4109-AC1A-3605CC2E1ACA-519-0000019CEA0F8883

Tags: Wordpress

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net 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: 400
Date Added: 2015-10-12 10:12:45
Last Modified: 2015-10-12 04:21:28

Web Analytics