tptn_bots
Filter the list of known bot user agent patterns to check against.
Defaults to a bundled list, used as a fallback alongside (or instead of, if the jaybizzle/crawler-detect library failed to load) the library’s own detection.
Type: filter
Since: 3.3.0
Source: includes/util/class-helpers.php line 440
Parameters
| Type | Name | Description |
|---|---|---|
array | $bot_user_agents | List of bot user agent patterns. |
Usage
add_filter( 'tptn_bots', function($bot_user_agents) {
// ...
return $bot_user_agents;
} );