Thread Rating:
09-09-2026, 08:52 PM
Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.
I keep a list of essential plugins and thought I would share it here.
Hooks are the heart of MyBB plugins — is where everything starts.
Remember: _activate() should be reversible, _install() owns permanent structures.
Would love to hear how you all handle this.
I keep a list of essential plugins and thought I would share it here.
Hooks are the heart of MyBB plugins —
Code: PHP
$plugins->add_hook('pre_output_page', 'my_func');Remember: _activate() should be reversible, _install() owns permanent structures.
Would love to hear how you all handle this.
09-10-2026, 04:14 PM
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
That hooks explanation finally made it click for me.
That has been my experience as well.
That hooks explanation finally made it click for me.
That has been my experience as well.
09-11-2026, 11:37 PM
09-12-2026, 06:21 PM
Always call rebuild_settings() after changing settings programmatically.
That hooks explanation finally made it click for me.
That hooks explanation finally made it click for me.
09-14-2026, 06:32 AM
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Nice thread, following for the replies.
Interesting — I will have to try that.
Nice thread, following for the replies.
Interesting — I will have to try that.
09-15-2026, 12:02 AM
09-16-2026, 06:09 PM
Nice plugin, testing it on my dev board now.
Always call rebuild_settings() after changing settings programmatically.
That has been my experience as well.
Good point, I had not thought of it that way.
Always call rebuild_settings() after changing settings programmatically.
That has been my experience as well.
Good point, I had not thought of it that way.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)
