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;
| Type | Name | Description |
|---|---|---|
array | $defaults | Default 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;
| Type | Name | Description |
|---|---|---|
bool | $short_circuit | Short circuit flag. |
\WP_Post | $post | Post object. |
array | $args | Arguments 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;
| Type | Name | Description |
|---|---|---|
array | $indexes | Array 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;
| Type | Name | Description |
|---|---|---|
string | $url | The post URL. |
\WP_Post | $result | The post object. |
array | $args | Arguments array. |
Returns: string — Modified URL with tracking parameters.