Recent

Pro_AdminclassPro only

Pro_Admin

Pro Admin class.

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

Methods

__construct()

Constructor class.

Since: 4.1.0
Line: 41

public function __construct(  );

hooks()

Register admin hooks.

Since: 4.1.0
Line: 57

public function hooks(  );

update_meta_box()

Update the meta box.

Since: 4.0.0
Line: 87

public function update_meta_box( $post );
Type Name Description
\WP_Post $post Post object.

save_meta_box()

Save the meta box.

Since: 4.0.0
Line: 119

public function save_meta_box( $post_id );
Type Name Description
int $post_id Post ID.

clear_cache_button() static

Add clear cache button to the settings page.

Since: 4.0.0
Line: 137

static public function clear_cache_button(  );

render_daily_rollup_action()

Render the daily table size reduction tool.

Since: 4.5.0
Line: 151

public function render_daily_rollup_action( bool $network_wide ): void;
Type Name Description
bool $network_wide Whether the current page is the Network Admin page.

Returns: void

handle_daily_rollup_action()

Handle the daily table size reduction tool.

Since: 4.5.0
Line: 195

public function handle_daily_rollup_action(  ): void;

Returns: void

add_network_copy_settings()

Add network admin copy settings tool.

Since: 4.2.0
Line: 315

public function add_network_copy_settings(  );

update_admin_column_post_types()

Update the post types for which the admin columns should be displayed.

Since: 4.0.0
Line: 411

public function update_admin_column_post_types( $post_types ): array;
Type Name Description
array $post_types Post types.

Returns: array — Updated post types.

convert_dependencies_to_pro()

Convert plugin dependencies from top-10 to top-10-pro.

Since: 4.0.3
Line: 429

public function convert_dependencies_to_pro( $slug ): string;
Type Name Description
string $slug Plugin slug.

Returns: string — Updated slug.

add_selected_day_tab()

Add “Selected Day” tab to the dashboard tabs.

Since: 4.2.0
Line: 444

public function add_selected_day_tab( $tabs ): array;
Type Name Description
array $tabs Array of dashboard tabs.

Returns: array — Modified array of dashboard tabs.

enqueue_chart_interactions_script()

Enqueue chart interactions JavaScript.

Since: 4.2.0
Line: 470

public function enqueue_chart_interactions_script( $hook ): void;
Type Name Description
string $hook The current admin page.

Returns: void

get_day_posts()

Get day posts via AJAX.

Line: 500

public function get_day_posts(  );

handle_copy_settings()

Handle copying Top 10 settings from a source site to destination sites.

Since: 4.2.0
Line: 554

public function handle_copy_settings(  );

show_settings_copied_notice()

Display a notice if settings were copied successfully.

Since: 4.2.0
Line: 607

public function show_settings_copied_notice(  );