I'm not clear as to why it needs to register/unregister actions. Why not simply register all possible actions at the start (in genesis), then based on settings enable/disable/show/hide the appropriate actions? That would be the way I would handle it.
|