dataProvider = new ExclusionsDataProvider(); } public function init() { $this->disableScreenOption(); } public function getData() { wp_localize_script(Admin_Assets::$prefix, 'Wp_Statistics_Exclusions_Object', $this->dataProvider->getChartData()); return $this->dataProvider->getExclusionsData(); } public function render() { $args = [ 'title' => esc_html__('Excluded Data Overview', 'wp-statistics'), 'tooltip' => esc_html__('Track and analyze the logs of excluded traffic based on your Filtering & Exceptions settings.', 'wp-statistics'), 'pageName' => Menus::get_page_slug('exclusions'), 'DateRang' => Admin_Template::DateRange(), 'hasDateRang' => true, 'data' => $this->getData() ]; Admin_Template::get_template(['layout/header', 'layout/title', 'pages/exclusions', 'layout/footer'], $args); } }