landbryo
4/28/2017 - 10:15 PM

WordPress shortcode [copyYear] to be used in widgets and theme options.

WordPress shortcode [copyYear] to be used in widgets and theme options.

//////////////////////////////
// COPYRIGHT YEAR SHORTCODE //
//////////////////////////////

function copyrightYear(){
return date('Y');
}
add_shortcode('copyYear', 'copyrightYear');