PluginProbe ʕ •ᴥ•ʔ
Admin Columns / 7.0.19
Admin Columns v7.0.19
7.0.19 2.3.5 2.4 2.4.1 2.4.10 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.6.1 2.5.6.2 2.5.6.3 2.5.6.4 3.0 3.0.1 3.0.2 3.0.3 3.0.5 3.0.7 3.1 3.1.1 3.1.10 3.1.2 3.1.3 3.1.5 3.2.3 3.2.7 3.3.1 3.4.1 3.4.6 3.4.8 4.0.1 4.0.3 4.1.6 4.2.2 4.2.5 4.3 4.3.2 4.4.1 4.4.4 4.4.5 4.5.5 4.6.1 4.7.18 4.7.19 4.7.20 4.7.7 7.0.13 7.0.14 7.0.16 trunk 1.0 1.1 1.1.3 1.2 1.2.1 1.3 1.3.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.5.1 1.4.6 1.4.6.1 1.4.6.2 1.4.6.3 1.4.6.4 1.4.7 1.4.8 1.4.9 2.0.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2 2.2.1 2.2.1.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.5.1 2.2.6 2.2.6.1 2.2.6.2 2.2.6.3 2.2.6.4 2.2.7 2.2.8 2.2.8.1 2.2.9 2.3.1 2.3.2 2.3.3
codepress-admin-columns / classes / Admin / AdminNetwork.php
codepress-admin-columns / classes / Admin Last commit date
Asset 1 month ago Banner 1 month ago Colors 1 month ago MenuGroupFactory 1 month ago MenuPageFactory 1 month ago Notice 1 month ago Page 1 month ago PageFactory 1 month ago Preference 1 month ago Type 1 month ago View 1 month ago Admin.php 1 month ago AdminLoader.php 1 month ago AdminNetwork.php 1 month ago AdminScripts.php 1 month ago HelpTab.php 1 month ago Helpable.php 1 month ago Menu.php 1 month ago MenuFactory.php 1 month ago MenuFactoryInterface.php 1 month ago MenuGroupFactory.php 1 month ago MenuListFactory.php 1 month ago MenuListItems.php 1 month ago MenuPageFactory.php 1 month ago PageFactoryInterface.php 1 month ago PageNetworkRequestHandler.php 1 month ago PageNetworkRequestHandlers.php 1 month ago PageRequestHandler.php 1 month ago PageRequestHandlers.php 1 month ago RenderableHead.php 1 month ago RequestHandlerInterface.php 1 month ago ScreenOption.php 1 month ago ScreenOptions.php 1 month ago Scripts.php 1 month ago Tooltip.php 1 month ago UninitializedScreens.php 1 month ago
AdminNetwork.php
52 lines
1 <?php
2
3 namespace AC\Admin;
4
5 use AC\AdminColumns;
6 use AC\Asset\Location;
7 use AC\Registerable;
8
9 class AdminNetwork implements Registerable
10 {
11
12 private RequestHandlerInterface $request_handler;
13
14 private Location $location_core;
15
16 private AdminScripts $scripts;
17
18 public function __construct(
19 PageNetworkRequestHandlers $request_handler,
20 AdminColumns $plugin,
21 AdminScripts $scripts
22 ) {
23 $this->request_handler = $request_handler;
24 $this->location_core = $plugin->get_location();
25 $this->scripts = $scripts;
26 }
27
28 public function register(): void
29 {
30 add_action('network_admin_menu', [$this, 'init']);
31 }
32
33 private function get_menu_page_factory(): MenuPageFactory
34 {
35 return apply_filters(
36 'ac/menu_network_page_factory',
37 new MenuPageFactory\SubMenu()
38 );
39 }
40
41 public function init(): void
42 {
43 $hook = $this->get_menu_page_factory()->create([
44 'parent' => 'settings.php',
45 'icon' => $this->location_core->with_suffix('assets/images/page-menu-icon.svg')->get_url(),
46 ]);
47
48 $loader = new AdminLoader($hook, $this->request_handler, $this->scripts);
49 $loader->register();
50 }
51
52 }