bsearch_sql_injection_detected
Fires when a SQL injection attempt is detected.
Type: action
Since: 4.0.6
Source: includes/util/class-helpers.php line 94
Parameters
| Type | Name | Description |
|---|---|---|
string | $val | The search query that triggered the detection. |
string | $pattern | The pattern that matched. |
Usage
add_action( 'bsearch_sql_injection_detected', function($val, $pattern) {
// ...
} );