Function Hook_spam_heuristics_country->assess_confidence
Definitions
sources/hooks/systems/spam_heuristics/country.php
- Find the confidence score for a particular spam heuristic as applied to the current context.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $post_data | string | No | No | required parameter | N/A | N/A | Posted data |
Returns
- Confidence score
- Type: integer
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find the confidence score for a particular spam heuristic as applied to the current context.
*
* @param string $post_data Posted data
* @return integer Confidence score
*/
public function assess_confidence(string $post_data) : int
* Find the confidence score for a particular spam heuristic as applied to the current context.
*
* @param string $post_data Posted data
* @return integer Confidence score
*/
public function assess_confidence(string $post_data) : int

