Created
December 23, 2018 15:35
-
-
Save iqbalmauludy/f77d74c1688f7441f0f6eb75587749c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function currentYear( $atts ){ | |
return date('Y'); | |
} | |
add_shortcode( 'year', 'currentYear' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment