Thread Rating:
05-15-2026, 02:58 AM
Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.
I keep a list of essential plugins and thought I would share it here.
Hooks are the heart of MyBB plugins — is where everything starts.
Remember: _activate() should be reversible, _install() owns permanent structures.
I did a bit of searching but could not find a recent thread on this, so here we go.
I keep a list of essential plugins and thought I would share it here.
Hooks are the heart of MyBB plugins —
Code: PHP
$plugins->add_hook('pre_output_page', 'my_func');Remember: _activate() should be reversible, _install() owns permanent structures.
I did a bit of searching but could not find a recent thread on this, so here we go.
05-15-2026, 06:18 AM
The gid=0 trick keeps plugin settings out of the ACP — neat.
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Good point, I had not thought of it that way.
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Good point, I had not thought of it that way.
05-16-2026, 03:12 AM
05-17-2026, 01:17 PM
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Nice plugin, testing it on my dev board now.
Nice thread, following for the replies.
Nice plugin, testing it on my dev board now.
Nice thread, following for the replies.
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)
