Recent

Pro class Pro only

Pro

Class to load all the pro features.

Namespace: WebberZone\Contextual_Related_Posts\Pro
Source: includes/class-pro.php line 21

Methods

__construct()

Constructor

Line: 116

public function __construct(  );

free_hooks() static

Hooks run when on the free plan.

Since: 3.5.0
Line: 152

static public function free_hooks(  );

update_shortcode_defaults()

Update the shortcode defaults.

Since: 3.5.0
Line: 164

public function update_shortcode_defaults( $defaults ): array;
TypeNameDescription
array$defaultsDefault shortcode settings.

Returns: array — Updated shortcode settings.

short_circuit()

Shortcode circuit.

Since: 3.5.0
Line: 188

public function short_circuit( $short_circuit, $post, $args ): bool;
TypeNameDescription
bool$short_circuitShort circuit flag.
\WP_Post$postPost object.
array$argsArguments array.

Returns: bool — True if short circuit is enabled.

update_fulltext_indexes() static

Update the fulltext indexes.

Since: 3.5.0
Line: 223

static public function update_fulltext_indexes( $indexes ): array;
TypeNameDescription
array$indexesArray of indexes.

Returns: array — Updated array of indexes.

uninstall_pro() static

Uninstall the pro plugin features.

Since: 3.5.0
Line: 234

static public function uninstall_pro(  );

delete_data() static

Delete plugin data.

Since: 3.5.0
Line: 260

static public function delete_data(  );

add_tracking_parameters()

Add tracking parameters to related post URLs.

Since: 4.0.0
Line: 281

public function add_tracking_parameters( $url, $result, $args ): string;
TypeNameDescription
string$urlThe post URL.
\WP_Post$resultThe post object.
array$argsArguments array.

Returns: string — Modified URL with tracking parameters.