<?php namespace WP_Statistics\Abstracts; use WP_STATISTICS\Menus; use WP_Statistics\Components\Singleton; abstract class BasePage extends Singleton { protected $pageSlug; public function __construct() { if (Menus::in_page($this->pageSlug)) { $this->init(); } } protected function init() { } protected function disableScreenOption() { add_filter('screen_options_show_screen', '__return_false'); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
BaseMetabox.php | File | 5.88 KB | 0644 |
|
BaseModel.php | File | 2.99 KB | 0644 |
|
BasePage.php | File | 479 B | 0644 |
|
BaseTabView.php | File | 1.75 KB | 0644 |
|
BaseView.php | File | 147 B | 0644 |
|
MultiViewPage.php | File | 1.82 KB | 0644 |
|