Open main menu

Manual:$wgFilterCallback

This page is a translated version of the page Manual:$wgFilterCallback and the translation is 40% complete.

Other languages:
English • ‎español • ‎français • ‎magyar • ‎日本語
Acceso: $wgFilterCallback
Similarly (to $wgSpamRegex ) if this function returns true
Introducido en la versión:1.3.0 (r4130)
Deprecated in version:1.17.0
Eliminado en la versión:aún se usa
Valores permitidos:no especificado
Valor predeterminado:false

Detalles

Similar to $wgSpamRegex , you can get a function to do the job. The function will be given the following args:

  1. a Title object for the article the edit is made on
  2. the text submitted in the textarea (wpTextbox1)
  3. the section number.

The return should be boolean indicating whether the edit matched some evilness:

  • true: bloquearlo
  • false: dejarlo pasar