Thread Rating:
09-17-2026, 08:48 AM
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.
I did a bit of searching but could not find a recent thread on this, so here we go.
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.
I did a bit of searching but could not find a recent thread on this, so here we go.
« Next Oldest | Next Newest »
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)
