Thread Rating:
10-20-2026, 04:51 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.
Hooks are the heart of MyBB plugins —
Code: PHP
$plugins->add_hook('pre_output_page', 'my_func');
10-21-2026, 04:50 PM
The gid=0 trick keeps plugin settings out of the ACP — neat.
That hooks explanation finally made it click for me.
Good point, I had not thought of it that way.
That hooks explanation finally made it click for me.
Good point, I had not thought of it that way.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)
