Created
May 16, 2016 12:14
-
-
Save Oceas/7ea39da37098a40ba857ce9f36295d42 to your computer and use it in GitHub Desktop.
This file contains 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
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