Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Talk:Shortcode API

Propose adding a section or paragraph somewhere which specifies where the shortcode function definitions may be written. What say you? -Hawk 23:13, 31 May 2009 (UTC)

Sounds good. --MichaelH (talk) 12:21, 1 June 2009 (UTC)


Nowhere on this entire page does it describe WHERE to write these shortcodes, only HOW. Gregariousjb 01:29, 31 August 2014 (UTC)

I'm not sure why we would need to explain where the code should go. It would go the same places any code for extending WordPress would go: in a plugin, or possibly a theme/child theme. I guess maybe it isn't clear to new devs though? -Jdgrimes 12:50, 1 September 2014 (UTC)