Extension:Comments/Hooks/Comment::delete

From Linux Web Expert

Revision as of 00:52, 20 March 2020 by imported>Shirayuki
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Comment::delete
Available from version ???

Define function:
public static function onComment_delete( $this, $id, $pageId ) { ... }
Attach hook:
$wgHooks['Comment::delete'][] = 'MyExtensionHooks::onComment_delete';
Called from:File(s): Comments / Comment.php
Function(s): delete

For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:Comment::delete extensions.

Details

  • $this
  • $id
  • $pageId