Skip to content

Instantly share code, notes, and snippets.

@Oceas
Created May 16, 2016 12:13
Show Gist options
  • Save Oceas/e90ea96ca542082b85b9749e17e86093 to your computer and use it in GitHub Desktop.
Save Oceas/e90ea96ca542082b85b9749e17e86093 to your computer and use it in GitHub Desktop.
add_shortcode('five-o-clock', 'five_o_clock_here');
//Shortcode function that accepts attributes
function five_o_clock_here($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