Skip to content

Instantly share code, notes, and snippets.

@Oceas
Created May 16, 2016 12:14
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 Oceas/7ea39da37098a40ba857ce9f36295d42 to your computer and use it in GitHub Desktop.
Save Oceas/7ea39da37098a40ba857ce9f36295d42 to your computer and use it in GitHub Desktop.
add_shortcode('five-o-clock', 'five_o_clock_here');
//Shortcode function that defines default values
function five_o_clock_here($atts) {
$atts = shortcode_atts( array(
'where' => 'somewhere!',
), $atts );
return "It's 5 o' clock " . $atts["where"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment