Dashboard_Widgets
Pro Dashboard Widgets Class.
Namespace: WebberZone\Top_Ten\Pro\Admin
Since: 4.2.0
Source: includes/admin/class-dashboard-widgets.php line 21
Methods
__construct()
Constructor class.
Since: 4.2.0
Line: 28
public function __construct( );
enqueue_dashboard_scripts()
Enqueue Chart.js scripts for the dashboard widget.
Since: 4.2.0
Line: 40
public function enqueue_dashboard_scripts( $hook );
| Type | Name | Description |
|---|---|---|
string | $hook | Current admin page hook. |
replace_views_over_time_widget_content()
Replace the placeholder widget content with a real chart in Pro.
Since: 4.2.0
Line: 61
public function replace_views_over_time_widget_content( $output ): string;
| Type | Name | Description |
|---|---|---|
string | $output | Original widget output. |
Returns: string — Modified output.