Thread Rating:
09-23-2026, 05:13 AM
Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.
Hooks are the heart of MyBB plugins — is where everything starts.
Would love to hear how you all handle this.
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.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)
