Theme demo: pick a theme on the right. Log in as demo / demo to try posting. Everything resets every night.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Member
***
222 16 Feb 2026 0
#1

Remember: _activate() should be reversible, _install() owns permanent structures.

Hooks are the heart of MyBB plugins —
Code: PHP
$plugins->add_hook('pre_output_page', 'my_func');
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.
Reply
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)

Forum Jump: