Last active
May 24, 2018 16:15
-
-
Save landbryo/ec98f0afdc741a8681b899177ef8a6b3 to your computer and use it in GitHub Desktop.
WordPress shortcode [copyYear] to be used in widgets and theme options.
This file contains 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
////////////////////////////// | |
// COPYRIGHT YEAR SHORTCODE // | |
////////////////////////////// | |
function copyrightYear(){ | |
return date('Y'); | |
} | |
add_shortcode('copyYear', 'copyrightYear'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment