[wp-hackers] after_theme_setup and add_shortcode

Otto otto at ottodestruct.com
Tue Jan 22 18:20:09 UTC 2013

On Tue, Jan 22, 2013 at 12:01 PM, chris <chris at lod.com> wrote:
> Can we add_shortcode inside a function hooked to after_theme_setup and it
> will remain active? Or does it have to be outside.

You can, but there's no real reason to do so. Like add_action and
add_filter, add_shortcode works fine from the main body of the
plugin/theme code.


More information about the wp-hackers mailing list