Skip to main content

set_spam_filter()

public static function set_spam_filter( $form_id, $filter, $reason )

Sets the name of the spam filter that flagged entry as spam during a form submission.

Since: 2.7

Source: common.php:4855

Parameters

NameTypeDefaultDescription
$form_idintCurrent form id.
$filterstringName of spam filter that marked entry as spam. (i.e. Akismet or Honeypot ).
$reasonstringThe reason this entry was flagged as spam.