Last active
August 29, 2015 14:10
-
-
Save puikinsh/5c1b2aebaa8169be9d9a to your computer and use it in GitHub Desktop.
A simple WordPress shortcode example http://colorlib.com/wp/shortcodes-can-add-life-wordpress-themes/
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
<?php | |
function my_shortcode_function() { | |
$i = '<p>Hello World!</p>'; | |
return $i; | |
} | |
add_shortcode('my-shortcode', 'my_shortcode_function'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment