Should shortdcodes be in plugin?

Hi, I want to build some custom shortocdes .My question is that can I embed them in the theme file or I must build it in a plugin? thanks!!

Hi there,

You must create your shortcodes inside a plugin. Otherwise your item will end up rejected.

Btw, all custom post types, metaboxes, widgets needs to be added on a plugin.

Kind regards