Open main menu

Extension:Comments/Hooks/Comment::add

Comment::add
Available from versionĀ ???

Define function:
public static function onComment_add( $comment, $commentId, $comment->page->id ) { ... }
Attach hook:
$wgHooks['Comment::add'][] = 'MyExtensionHooks::onComment_add';
Called from:File(s): Comment.class.php
Function(s): add

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

DetailsEdit

  • $comment
  • $commentId
  • $comment->page->id