Last active
August 11, 2022 21:17
-
-
Save davidsword/394108430a76c36aa9cefb6c809dc187 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
<? | |
// ❌ won't work, will show at top of page | |
add_shortcode('rocktheboat', function () { | |
echo "hello world"; | |
}); | |
// ✅ will work, will replace shortcode with returned text | |
add_shortcode('rocktheboat', function () { | |
return "hello world"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment