{"version":"2.1.333","anchor":"plugin-hook-registration-error-for-non-event-names","canonical_anchor":"plugin-hook-registration-error-for-non-event-names","heading":"Clearer error when a plugin registers a name that is not an event","tier":"notice","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/plugin-hook-registration-error-for-non-event-names","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Clearer error when a plugin registers a name that is not an event\n\nWhen a plugin registers a name that is not an event, the error now says so directly instead of saying no plugin provides it\n\n**What**\n\nPlugins can register hooks, which are actions that run when a named event happens. When a plugin registers a name that is not an event, the error now says the name was registered \"which is not an event\". Before, it said that no loaded plugin provides it.\n\n**Why**\n\nPlugin authors get an error that points at the real problem.\n\n- Area: Plugins\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}