[ticket/12260] Add core events to delete_posts() function.

Events for extensions to perform additional actions on posts deletion.

PHPBB3-12260
Merge remote-tracking branch 'rxu3/ticket/12260' into develop

* rxu3/ticket/12260:
  [ticket/12260] Add core events to delete_posts() function.