Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide API to allow users to add their own modules. #462

Open
rinatkhaziev opened this issue May 5, 2018 · 1 comment
Open

Provide API to allow users to add their own modules. #462

rinatkhaziev opened this issue May 5, 2018 · 1 comment

Comments

@rinatkhaziev
Copy link
Contributor

It'd be nice to provide API for users to add their own Edit Flow modules for things like integrations with other plugins (See #386 and #387 as examples).

ef_register_module(...)

Details of the implementation are yet to be discussed.

@WPprodigy
Copy link
Contributor

This would be a good time to separate out the module loading process. There could be a separate class responsible for holding all the instances of modules (with register/unregister/get methods).

Then the base Edit Flow class would add its core modules, and expose the method for registering new ones. On the init hook, it'd run through the list and call $module->init(); on those that are enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants