Theme demo: pick a theme on the right. Log in as demo / demo to try posting. Everything resets every night.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Member
***
230 25 Oct 2025 0
#2

(08-15-2026, 07:54 AM)KernelKate Wrote: Hooks are the heart of MyBB plugins —
Code: PHP
$plugins->add_hook('pre_output_page', 'my_func');
is where everything starts.
Always call rebuild_settings() after changing settings programmatically.

Whitelist-based hooks debugging in class_plugins.php helped me a lot.

Interesting — I will have to try that.
Reply
Messages In This Thread
[No subject] - by NeonNia - 08-17-2026, 06:05 AM
[No subject] - by KernelKate - 08-17-2026, 08:55 AM
[No subject] - by ByteBruce - 08-19-2026, 04:38 AM
[No subject] - by PixelatedPaul - 08-19-2026, 08:09 PM
[No subject] - by ByteBruce - 08-21-2026, 01:11 AM

Users browsing this thread: 1 Guest(s)

Forum Jump: