Skip to content

Instantly share code, notes, and snippets.

@dragipostolovski
Last active May 15, 2021 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dragipostolovski/5b7d3359e7e5ce102628cd02d5438ff7 to your computer and use it in GitHub Desktop.
Save dragipostolovski/5b7d3359e7e5ce102628cd02d5438ff7 to your computer and use it in GitHub Desktop.
<?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