Recent

Bot_Protection_Module class Pro only

Bot_Protection_Module

Handles bot detection and short-circuits CRP rendering.

Namespace: WebberZone\Contextual_Related_Posts\Pro
Since: 4.2.0
Source: includes/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;
TypeNameDescription
bool$short_circuitCurrent short circuit flag.
\WP_Post$postPost object.
array$argsDisplay arguments.

Returns: bool