PluginProbe ʕ •ᴥ•ʔ
WP Popular Posts / 7.3.6
WP Popular Posts v7.3.6
4.0.8 4.0.9 4.1.0 4.1.1 4.1.2 4.2.0 4.2.1 4.2.2 5.0.0 5.0.1 5.0.2 5.1.0 5.2.0 5.2.1 5.2.2 5.2.3 5.2.4 5.3.0 5.3.1 5.3.2 5.3.3 5.3.4 5.3.5 5.3.6 5.4.0 5.4.1 5.4.2 5.5.0 5.5.1 6.0.0 6.0.1 6.0.2 6.0.3 6.0.4 6.0.5 6.1.0 6.1.1 6.1.2 6.1.3 6.1.4 6.2.0 6.2.1 6.3.0 6.3.1 6.3.2 6.3.3 6.3.4 6.4.0 6.4.1 6.4.2 7.0.0 7.0.1 7.1.0 7.2.0 7.3.0 7.3.1 7.3.2 7.3.3 7.3.4 7.3.5 7.3.6 7.3.7 7.3.8 7.4.0 trunk 2.3.7 3.0.0 3.0.1 3.0.2 3.0.3 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 4.0.0 4.0.1 4.0.10 4.0.11 4.0.12 4.0.13 4.0.2 4.0.3 4.0.5 4.0.6
wordpress-popular-posts / src / WordPressPopularPosts.php
wordpress-popular-posts / src Last commit date
Activation 8 months ago Admin 8 months ago Block 8 months ago Compatibility 8 months ago Container 8 months ago Front 8 months ago Rest 8 months ago Shortcode 8 months ago Traits 8 months ago Widget 8 months ago Bootstrap.php 8 months ago Cache.php 8 months ago Helper.php 8 months ago Image.php 8 months ago Output.php 8 months ago Query.php 8 months ago Settings.php 8 months ago Themer.php 8 months ago Translate.php 8 months ago Upgrader.php 8 months ago WordPressPopularPosts.php 8 months ago deprecated.php 8 months ago template-tags.php 8 months ago
WordPressPopularPosts.php
124 lines
1 <?php
2 /**
3 * Plugin's main class.
4 *
5 * Here everything gets initialized/loaded.
6 */
7
8 namespace WordPressPopularPosts;
9
10 class WordPressPopularPosts {
11
12 /**
13 * REST controller class.
14 *
15 * @var Rest\Controller $rest
16 * @access private
17 */
18 private $rest;
19
20 /**
21 * Admin class.
22 *
23 * @var Admin\Admin $front
24 * @access private
25 */
26 private $admin;
27
28 /**
29 * Front class.
30 *
31 * @var Front\Front $front
32 * @access private
33 */
34 private $front;
35
36 /**
37 * Widget class.
38 *
39 * @var Widget\Widget $widget
40 * @access private
41 */
42 private $widget;
43
44 /**
45 * Block Widget class.
46 *
47 * @var Block\Widget $widget
48 * @access private
49 */
50 private $block_widget;
51
52 /**
53 * ShortcodeLoader class.
54 *
55 * @var Shortcode\ShortcodeLoader $shortcode_loader
56 * @access private
57 */
58 private $shortcode_loader;
59
60 /**
61 * Compatibility class.
62 *
63 * @var Compatibility\Compatibility $compatibility
64 * @access private
65 */
66 private $compatibility;
67
68 /**
69 * Upgrader class.
70 *
71 * @var Upgrader $upgrader
72 * @access private
73 */
74 private $upgrader;
75
76 /**
77 * Constructor.
78 *
79 * @since 5.0.0
80 * @param I18N $i18n
81 * @param Rest\Controller $rest
82 * @param Admin\Admin $admin
83 * @param Front\Front $front
84 * @param Widget\Widget $widget
85 */
86 public function __construct(
87 Upgrader $upgrader,
88 Rest\Controller $rest,
89 Admin\Admin $admin,
90 Front\Front $front,
91 Widget\Widget $widget,
92 Block\Widget\Widget $block_widget,
93 Shortcode\ShortcodeLoader $shortcode_loader,
94 Compatibility\Compatibility $compatibility
95 )
96 {
97 $this->upgrader = $upgrader;
98 $this->rest = $rest;
99 $this->admin = $admin;
100 $this->front = $front;
101 $this->widget = $widget;
102 $this->block_widget = $block_widget;
103 $this->shortcode_loader = $shortcode_loader;
104 $this->compatibility = $compatibility;
105 }
106
107 /**
108 * Initializes plugin.
109 *
110 * @since 5.0.0
111 */
112 public function init()
113 {
114 $this->upgrader->hooks();
115 $this->compatibility->load();
116 $this->rest->hooks();
117 $this->admin->hooks();
118 $this->front->hooks();
119 $this->widget->hooks();
120 $this->block_widget->hooks();
121 $this->shortcode_loader->load();
122 }
123 }
124