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
Senior Member
****
263 28 Dec 2025 0 0
#1

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.

I did a bit of searching but could not find a recent thread on this, so here we go.
Reply
Messages In This Thread
Is there a working likes/thanks plugin? - by GamerGhoul - 09-17-2026, 08:48 AM
[No subject] - by PixelatedPaul - 09-17-2026, 04:52 PM
[No subject] - by ByteBruce - 09-18-2026, 06:38 AM
[No subject] - by CodeWizard - 09-18-2026, 10:39 PM

Users browsing this thread: 1 Guest(s)

Forum Jump: