Thread Rating:
09-09-2026, 08:52 PM
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.
Would love to hear how you all handle this.
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.
Would love to hear how you all handle this.
« Next Oldest | Next Newest »
Messages In This Thread
Datahandlers vs raw queries in plugins — follow-up - by DevDan - 09-09-2026, 08:52 PM
[No subject] - by CodeWizard - 09-10-2026, 04:14 PM
[No subject] - by WidgetWill - 09-11-2026, 11:37 PM
[No subject] - by GamerGhoul - 09-12-2026, 06:21 PM
[No subject] - by CodeWizard - 09-14-2026, 06:32 AM
[No subject] - by GamerGhoul - 09-15-2026, 12:02 AM
[No subject] - by DevDan - 09-16-2026, 06:09 PM
[No subject] - by ZenZara - 09-18-2026, 12:07 AM
Users browsing this thread: 1 Guest(s)
