WordPoints / hooks-api

A basic API for hooking into user actions https://github.com/WordPoints/wordpoints/issues/321
GNU General Public License v2.0
0 stars 0 forks source link

Ability to disable a hook temporarily #11

Closed JDGrimes closed 8 years ago

JDGrimes commented 9 years ago

Just an enable/disable feature. In the previous points hooks API this was accomplished by dragging a hook to the Inactive Hooks area.

Kind of related: #7.

JDGrimes commented 9 years ago

In https://github.com/WordPoints/hooks-api/issues/29#issuecomment-147708423 I suggested that we might want to introduce a sort of "dormant" mode for reactions at some point. This isn't exactly the same as the user disabling the reaction, but rather when the code detects that the reaction (or even whole event) is related to some unknown entity and cannot safely be editing. It would be possible to view and delete the reactions, but not to edit them. This would be sort of like the unused sidebar feature in the Widgets API—the theme no longer uses the sidebar but it is still displayed until all of the widgets are removed. In this case the "sidebar" would be an event, and the "widgets" would be the reactions.

JDGrimes commented 9 years ago

Also RE dormant/inactive reactions/events, we might want to make it easy to delete all dormant reactions at once (see WP[35317]).

JDGrimes commented 8 years ago

Closing in favor of https://github.com/WordPoints/wordpoints/issues/470.