Skip to content

Instantly share code, notes, and snippets.

Created May 16, 2016
What would you like to do?
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