← All changes
|
modules/promotions/admin-menu-items/base-promotion-item.php
+4
-4
4.3.0
→
3.28.0-dev2
View file →
| @@ -11,21 +11,21 @@ | ||
| 11 | 11 | } |
| 12 | 12 | |
| 13 | 13 | abstract class Base_Promotion_Item implements Promotion_Menu_Item { |
| 14 | 14 | |
| 15 | - public function get_name(): string { | |
| 15 | + public function get_name() { | |
| 16 | 16 | return 'base_promotion'; |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | - public function is_visible(): bool { | |
| 19 | + public function is_visible() { | |
| 20 | 20 | return true; |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | - public function get_parent_slug(): string { | |
| 23 | + public function get_parent_slug() { | |
| 24 | 24 | return Settings::PAGE_ID; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | - public function get_capability(): string { | |
| 27 | + public function get_capability() { | |
| 28 | 28 | return 'manage_options'; |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | public function get_cta_text() { |