Recent

Pro_Admin class Pro only

Pro_Admin

Pro Admin class.

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

Methods

__construct()

Constructor class.

Since: 4.1.0
Line: 39

public function __construct(  );

hooks()

Register admin hooks.

Since: 4.1.0
Line: 55

public function hooks(  );

update_meta_box()

Update the meta box.

Since: 4.0.0
Line: 80

public function update_meta_box( $post );
TypeNameDescription
\WP_Post$postPost object.

save_meta_box()

Save the meta box.

Since: 4.0.0
Line: 112

public function save_meta_box( $post_id );
TypeNameDescription
int$post_idPost ID.

clear_cache_button() static

Add clear cache button to the settings page.

Since: 4.0.0
Line: 130

static public function clear_cache_button(  );

add_network_copy_settings()

Add network admin copy settings tool.

Since: 4.2.0
Line: 142

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: 238

public function update_admin_column_post_types( $post_types ): array;
TypeNameDescription
array$post_typesPost 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: 256

public function convert_dependencies_to_pro( $slug ): string;
TypeNameDescription
string$slugPlugin slug.

Returns: string — Updated slug.

add_selected_day_tab()

Add “Selected Day” tab to the dashboard tabs.

Since: 4.2.0
Line: 271

public function add_selected_day_tab( $tabs ): array;
TypeNameDescription
array$tabsArray of dashboard tabs.

Returns: array — Modified array of dashboard tabs.

enqueue_chart_interactions_script()

Enqueue chart interactions JavaScript.

Since: 4.2.0
Line: 297

public function enqueue_chart_interactions_script( $hook ): void;
TypeNameDescription
string$hookThe current admin page.

Returns: void

get_day_posts()

Get day posts via AJAX.

Line: 327

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: 381

public function handle_copy_settings(  );

show_settings_copied_notice()

Display a notice if settings were copied successfully.

Since: 4.2.0
Line: 434

public function show_settings_copied_notice(  );