Thread Rating:
10-28-2026, 04:51 AM
Remember: _activate() should be reversible, _install() owns permanent structures.
Hooks are the heart of MyBB plugins — is where everything starts.
Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.
Any tips, experiences or strong opinions welcome.
Hooks are the heart of MyBB plugins —
Code: PHP
$plugins->add_hook('pre_output_page', 'my_func');Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.
Any tips, experiences or strong opinions welcome.
« Next Oldest | Next Newest »
Messages In This Thread
How to debug a plugin that whitescreens - by EchoEzra - 10-28-2026, 04:51 AM
[No subject] - by CodeWizard - 10-29-2026, 09:29 PM
[No subject] - by BinaryBen - 10-31-2026, 08:00 AM
[No subject] - by LunarLily - 11-01-2026, 06:31 PM
[No subject] - by RetroRex - 11-02-2026, 05:01 AM
[No subject] - by NimbleNora - 11-02-2026, 10:53 PM
[No subject] - by RetroRex - 11-04-2026, 05:44 AM
Users browsing this thread: 1 Guest(s)
