MyBB Community Forums

Full Version: How to make a plugin system like NewPoints
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am currently working on a big plugin for MyBB. And I would like to make plugins for that plugin, just like NewPoints have it.

How can this be done...
The simplest way is to use the following code:

global $plugins;

$plugins->run_hooks('MyNewHook');

This allows other plugins to use that plugin hook.

I'm not sure exactly how NewPoints does it as I've never used it. The above way just uses myBB's existing plugin system though.