Last active
February 26, 2018 10:00
-
-
Save congthien/154e34fb292558f0dc29d5d4943633d2 to your computer and use it in GitHub Desktop.
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
function onepress_custom_date_function() { | |
echo '<script type="text/javascript"> | |
jQuery(document).ready(function( $ ){ | |
copyright = new Date(); | |
$("#theYear").html( copyright.getFullYear() ); | |
}); | |
</script>'; | |
} | |
add_action( 'wp_footer', 'onepress_custom_date_function' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment