[wp-hackers] register_activation_hook and PHP closure
ryanchan404 at gmail.com
Thu Apr 26 02:29:52 UTC 2012
On Wed, Apr 25, 2012 at 11:58 PM, Eric Mann <eric at eam.me> wrote:
> Just for the record, registering hooks using closures is typically a bad
> idea because they can't be removed later with `remove_action()`.
Yes, but using closures made the code more clean and reabable. We
don't use remove_action in our own plugin.
Thanks all for your feedback.
More information about the wp-hackers