MyBB Community Forums

Full Version: add_hook preview post
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.
How can I add this?

$plugins->add_hook("previewpost", "something");

It doesn't work that way
You will have to use one of these as that hook doesn't exist.
  • newreply_do_newreply_start
  • newreply_do_newreply_end
  • newreply_start
  • newreply_end
For a full list of hooks please see http://docs.mybb.com/MyBB_Plugin_Hooks.html