Created
June 3, 2022 13:46
-
-
Save texe/d5919cfb550d34127c59d4146927ee7a to your computer and use it in GitHub Desktop.
WordPress shortcode
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
function my_shortcode() { | |
$message = 'This is message from my shortcode!'; | |
return $message; | |
} | |
add_shortcode('my_heading', 'my_shortcode'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment