Recent

Pro class Pro only

Pro

Class to load all the pro features.

Namespace: WebberZone\Top_Ten\Pro
Since: 4.0.0
Source: includes/class-pro.php line 25

Methods

__construct()

Constructor

Line: 120

public function __construct(  );

Register stub shortcodes when Popular Authors is disabled so that raw shortcode text does not leak into published content.

Since: 4.4.0
Line: 166

public function register_popular_authors_stubs(  );

hooks()

Register hooks

Since: 4.0.0
Line: 178

public function hooks(  );

filter_maintenance_days()

Filter the maintenance days.

Allows Pro users to override the number of days of data retained in the daily table.

Since: 4.2.0
Line: 202

public function filter_maintenance_days( $days ): int;
TypeNameDescription
int$daysNumber of days before which post data is deleted from daily tables.

Returns: int — Updated number of days.

filter_log_retention_days()

Filter the visits log retention days.

Allows Pro users to override the number of days of raw visit rows retained in the log table.

Since: 4.3.0
Line: 222

public function filter_log_retention_days( $days ): int;
TypeNameDescription
int$daysNumber of days before which rows are deleted from the visits log table.

Returns: int — Updated number of days.

update_shortcode_defaults()

Update the shortcode defaults.

Since: 4.0.0
Line: 240

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

Returns: array — Updated shortcode settings.

short_circuit()

Shortcode circuit.

Since: 4.0.0
Line: 258

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

Returns: bool — True if short circuit is enabled.

update_tptn_query_args_before()

Update the Top 10 query args before the query is run.

Since: 4.0.0
Line: 286

public function update_tptn_query_args_before( $args, $source_post ): array;
TypeNameDescription
array$argsThe query arguments.
\WP_Post$source_postThe source post.

Returns: array — Updated query arguments.

update_registered_settings()

Update the registered settings.

Since: 4.0.0
Line: 313

public function update_registered_settings( $settings ): array;
TypeNameDescription
array$settingsRegistered settings.

Returns: array — Updated registered settings.

uninstall_pro() static

Uninstall the pro plugin features.

Since: 4.0.0
Line: 339

static public function uninstall_pro(  );

delete_data() static

Delete plugin data.

Since: 4.0.0
Line: 365

static public function delete_data(  ): void;

Returns: void

update_exclude_terms_include_parents()

Update the exclude terms include parents setting.

Since: 4.0.0
Line: 376

public function update_exclude_terms_include_parents( $include_parents ): bool;
TypeNameDescription
bool$include_parentsInclude parents flag.

Returns: bool — Updated include parents flag.

add_max_execution_time()

Adds MAX_EXECUTION_TIME hint to MySQL queries.

Since: 4.1.0
Line: 396

public function add_max_execution_time( $sql, $query ): string;
TypeNameDescription
string$sqlThe complete SQL query.
\WebberZone\Top_Ten\Top_Ten_Core_Query$queryThe Top_Ten_Core_Query instance.

Returns: string — Modified SQL query with MAX_EXECUTION_TIME hint.

filter_rss_feed_settings()

Filter the RSS feed settings to add category filtering support.

Since: 4.1.0
Line: 435

public function filter_rss_feed_settings( $settings ): array;
TypeNameDescription
array$settingsArray of RSS feed settings.

Returns: array — Modified settings array.