[c] [y] shortcode returns copyright symbol and current year
/**
* [y] Shortcode
* @return string Current Year in 4 digits
*/
function bdw_current_year() {
$date = getdate();
return $date['year'];
}
add_shortcode( 'y', 'bdw_current_year' );
/**
* [c] Shortcode
* @return string Copyright symbol
*/
function bdw_copyright() {
return '©';
}
add_shortcode( 'c', 'bdw_copyright' );