Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Member
***
231 23 Oct 2025 0
#1

Hooks are the heart of MyBB plugins — [code=php]$plugins->add_hook('pre_output_page', 'my_func');[/code] is where everything starts.

Remember: _activate() should be reversible, _install() owns permanent structures.

Would love to hear how you all handle this.
Reply
Super Moderator
******
222 22 Feb 2026 0
#2

(11-16-2026, 01:55 AM)RetroRex Wrote: Hooks are the heart of MyBB plugins — [code=php]$plugins->add_hook('pre_output_page', 'my_func');[/code] is where everything starts.
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Reply
Member
***
219 20 Jan 2026 0
#3

The gid=0 trick keeps plugin settings out of the ACP — neat.
Reply
Moderator
*****
213 24 Jan 2026 0
#4

That hooks explanation finally made it click for me.
Reply

Users browsing this thread: 1 Guest(s)

Forum Jump: