Function __global->check_for_spam

Definitions

sources/antispam.php

  • Spam check call front-end.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$username ?string No No required parameter N/A N/A Check this particular username that has just been supplied (null: none)
$email ?EMAIL No No required parameter N/A N/A Check this particular e-mail address that has just been supplied (null: none)
$page_level boolean No No required parameter N/A N/A Whether this is a page level check (i.e. we won't consider blocks or approval, just ban setting)

Preview

Code (PHP)

/**
 * Spam check call front-end.
 *
 * @param  ?string $username Check this particular username that has just been supplied (null: none)
 * @param  ?EMAIL $email Check this particular e-mail address that has just been supplied (null: none)
 * @param  boolean $page_level Whether this is a page level check (i.e. we won't consider blocks or approval, just ban setting)
 */

function check_for_spam(?string $username, ?string $email, bool $page_level)