Thread Rating:
10-05-2026, 03:26 AM
Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.
Remember: _activate() should be reversible, _install() owns permanent structures.
Hooks are the heart of MyBB plugins — is where everything starts.
Would love to hear how you all handle this.
I did a bit of searching but could not find a recent thread on this, so here we go.
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');Would love to hear how you all handle this.
I did a bit of searching but could not find a recent thread on this, so here we go.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)
