Bot_Protection_Module
Handles bot detection and short-circuits CRP rendering.
Namespace: WebberZone\Contextual_Related_Posts\Pro
Since: 4.2.0
Source: includes/pro/class-bot-protection-module.php line 21
Methods
__construct()
Constructor.
Since: 4.2.0
Line: 215
public function __construct( );
short_circuit_for_bots()
Short circuit CRP for detected bots.
Since: 4.2.0
Line: 230
public function short_circuit_for_bots( bool $short_circuit, $post, array $args ): bool;
| Type | Name | Description |
|---|---|---|
bool |
$short_circuit |
Current short circuit flag. |
\WP_Post |
$post |
Post object. |
array |
$args |
Display arguments. |
Returns: bool