PluginProbe
YayMail – WooCommerce Email Customizer / 4.4.6
YayMail – WooCommerce Email Customizer v4.4.6
4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 All 57 releases
← All changes | vendor-prefixed/src/Menu/MenuSuppressor.php +3 -4 4.4.2 → 4.4.6 View file →
@@ -16,9 +16,8 @@
16 16 * guard. The suppressor list here exists for future-proofing.
17 17 *
18 18 * Fallback path: if strategy (a) causes problems in Phase 02 pilot,
19 19 * disable this suppressor and coexist with legacy menus (strategy b).
20 - * @internal
21 20 */
22 21 class MenuSuppressor
23 22 {
24 23 /**
@@ -40,9 +39,9 @@
40 39 /**
41 40 * Register hooks. Runs on admin_menu / network_admin_menu priority 5
42 41 * (before standard priority 10).
43 42 */
44 - public function init() : void
43 + public function init(): void
45 44 {
46 45 AdminContext::bind_menu([$this, 'suppress_legacy_menus'], 5);
47 46 }
48 47 /**
@@ -47,9 +46,9 @@
47 46 }
48 47 /**
49 48 * Remove any legacy top-level menus from the slug list.
50 49 */
51 - public function suppress_legacy_menus() : void
50 + public function suppress_legacy_menus(): void
52 51 {
53 52 foreach ($this->slugs_to_suppress as $slug) {
54 53 remove_menu_page($slug);
55 54 }
@@ -58,9 +57,9 @@
58 57 * Return the list of slugs this suppressor will remove.
59 58 *
60 59 * @return string[]
61 60 */
62 - public function get_slugs() : array
61 + public function get_slugs(): array
63 62 {
64 63 return $this->slugs_to_suppress;
65 64 }
66 65 }