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
***
231 20 Nov 2026 0 0
#1

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 —
Code: PHP
$plugins->add_hook('pre_output_page', 'my_func');
is where everything starts.

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

Would love to hear how you all handle this.
Reply
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)

Forum Jump: