MyStudio Free demo
Rate limiting a plugin endpoint - Printable Version

+- MyStudio Free demo (https://demo.mystudio.forumeze.com)
+-- Forum: Products & Services (https://demo.mystudio.forumeze.com/forum-8.html)
+--- Forum: MyBB (https://demo.mystudio.forumeze.com/forum-9.html)
+---- Forum: Plugins (https://demo.mystudio.forumeze.com/forum-11.html)
+---- Thread: Rate limiting a plugin endpoint (/thread-112.html)



Rate limiting a plugin endpoint - RetroRex - 11-16-2026

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.


- ZenZara - 11-16-2026

(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.


- CraftyCathy - 11-17-2026

The gid=0 trick keeps plugin settings out of the ACP — neat.


- KernelKate - 11-18-2026

That hooks explanation finally made it click for me.