Thread Rating:
11-21-2026, 01:19 PM
Hooks are the heart of MyBB plugins — [code=php]$plugins->add_hook('pre_output_page', 'my_func');[/code] is where everything starts.
Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.
Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.
216
19
Nov 2026
11-22-2026, 07:23 PM
Always call rebuild_settings() after changing settings programmatically.
Good point, I had not thought of it that way.
Good point, I had not thought of it that way.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)
