Skip to content

Instantly share code, notes, and snippets.

@CodeNegar
Created July 18, 2012 03:28
Show Gist options
  • Save CodeNegar/3133988 to your computer and use it in GitHub Desktop.
Save CodeNegar/3133988 to your computer and use it in GitHub Desktop.
php: wordpress custom shortcode
function helloworld() {
return 'Hello World!';
}
add_shortcode('hello', 'helloworld');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment