MyBB Community Forums
Create hooks for mybb - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Create hooks for mybb (/thread-228009.html)



Create hooks for mybb - 8guawong - 2020-05-27

Can we create hooks for mybb? 

Like I want to hook when portal gets latest announcements

i can just edit portal.php and add $plugins->run_hooks("portal_latest_thread_start");

and thats all?


RE: Create hooks for mybb - .m. - 2020-05-27

yes, you can add hook like that & use in your plugin.

see also hooks related plugin for a older version of MyBB => MyBB-Hooks


RE: Create hooks for mybb - 8guawong - 2020-05-27

(2020-05-27, 10:31 AM).m. Wrote: yes, you can add hook like that & use in your plugin.

see also hooks related plugin for a older version of MyBB => MyBB-Hooks

thanks for the info