Last active
May 15, 2021 06:07
-
-
Save dragipostolovski/5b7d3359e7e5ce102628cd02d5438ff7 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
<?php | |
add_shortcode( 'pe_get_current_date_shortcode', 'pe_get_current_date' ); | |
/** | |
* Return the current date. | |
* | |
* @return false|string | |
*/ | |
function pe_get_current_date() { | |
return date('Y-m-d'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment