Fast_Tracker
Class to load the Top 10 Fast Tracker.
Namespace: WebberZone\Top_Ten\Pro
Since: 4.0.0
Source: includes/class-fast-tracker.php line 22
Methods
__construct()
Constructor class.
Since: 4.0.0
Line: 36
public function __construct( );
add_tracker_types() static
Add the Fast Tracker to the list of trackers.
Since: 4.0.0
Line: 77
static public function add_tracker_types( $trackers ): array;
| Type | Name | Description |
|---|---|---|
array | $trackers | List of trackers. |
Returns: array — List of trackers with the Fast Tracker added.
add_counter_script_url() static
Add the URL to the Fast Tracker JavaScript file.
Since: 4.0.0
Line: 101
static public function add_counter_script_url( $home_url ): string;
| Type | Name | Description |
|---|---|---|
string | $home_url | URL to the home page. |
Returns: string — URL to the counter script.
add_generate_button()
Add Generate High-traffic config button below tracker type setting.
Line: 122
public function add_generate_button( $html, $args ): string;
| Type | Name | Description |
|---|---|---|
string | $html | Existing HTML output. |
array | $args | Field arguments. |
Returns: string — Filtered HTML output.
ajax_generate_fast_config()
Handle the AJAX request to generate the high-traffic config.
Line: 167
public function ajax_generate_fast_config( ): void;
Returns: void
ajax_delete_fast_config()
Handle the AJAX request to delete the high-traffic config.
Line: 198
public function ajax_delete_fast_config( ): void;
Returns: void
handle_generate_fast_config()
Handle the Generate High-traffic config button submit.
Line: 229
public function handle_generate_fast_config( ): void;
Returns: void
filter_tracker_script_args()
Add extra tracker arguments for the High-traffic tracker.
Line: 337
public function filter_tracker_script_args( $args ): array;
| Type | Name | Description |
|---|---|---|
array | $args | Localize script arguments. |
Returns: array