c9 / architect

A simple yet powerful plugin system for large-scale node applications
MIT License
982 stars 129 forks source link

Does this support events/filters? #50

Closed jhyland87 closed 7 years ago

jhyland87 commented 8 years ago

Im looking for a plugin system I can use that will allow users to add functionality, and take advantage of events/filters that already exist in the application. I can see that Architect allows you to install plugins that add functionality that can be used by the system and other plugins, but does it allow you to add/apply filters? (WPs add_filter() and apply_filters() for example), or add/apply actions/events?

nightwing commented 8 years ago

No, as you can use node builtin EventEmitter in a similar way. But if you want to fully copy WP api, porting https://core.trac.wordpress.org/browser/tags/4.4.1/src/wp-includes/plugin.php#L199 to js should be easy.