Create a gist now

Instantly share code, notes, and snippets.

@davidsword /shortcodebeat.php Secret
Last active Feb 9, 2017

<?
add_shortcode('rocktheboat','dontrocktheboat');
// won't work, will show at top of page
function dontrocktheboat()  {
   echo "Don't rock the boat baby";
}
// will work, will replace shortcode with returned text
function dontrocktheboat()  {
   return "Don't rock the boat baby";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment