[theme-reviewers] add_editor_style() question

Otto otto at ottodestruct.com
Sat Dec 29 20:54:58 UTC 2012

On Sat, Dec 29, 2012 at 2:28 PM, Shinra Web Holdings
<contact at shinraholdings.com> wrote:
> Is simply placing add_editor_style() in the functions.php file the best
> practice, or is it better to wrap it in a theme function and call that with
> add_action()?

It is best to place that call inside a setup function which is then
hooked to the "after_setup_theme" action hook.

In general, nothing in the theme's functions.php file should be
outside of a function other than the add_action or add_filter calls.


More information about the theme-reviewers mailing list