Skip to content

Instantly share code, notes, and snippets.

@davidsword
Last active August 11, 2022 21:19
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 davidsword/1a590c2a11bb55531ddfc98eb83afee3 to your computer and use it in GitHub Desktop.
Save davidsword/1a590c2a11bb55531ddfc98eb83afee3 to your computer and use it in GitHub Desktop.
<?
// ✅ will work
add_shortcode('rocktheboat', function () {
ob_start();
echo " Hello world";
return ob_get_clean();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment