Closed chesio closed 6 years ago
What do you think about using the wp_loaded
or init
action instead of after_setup_theme
?
Good point. From the perspective of what I want to fix with this PR (being able to use the filter from a theme), I think there's no difference between the three as long as there's the did_action()
check in place. This said, both wp_loaded
and init
feel semantically more suitable than after_setup_theme
, so feel free to change the hook. Personally, I would opt for init
as this is the hook usually used for plugin initialization stuff.
Thanks!
Fixes #13.