| @@ 44-55 (lines=12) @@ | ||
| 41 | * @return void |
|
| 42 | * @action admin_menu |
|
| 43 | */ |
|
| 44 | public function addPage() |
|
| 45 | { |
|
| 46 | $this->hook = call_user_func_array( 'add_menu_page', apply_filters( 'pollux/archive/page', [ |
|
| 47 | __( 'Archive Page', 'pollux' ), |
|
| 48 | __( 'Archive Page', 'pollux' ), |
|
| 49 | 'edit_theme_options', |
|
| 50 | $this->id, |
|
| 51 | [$this, 'renderPage'], |
|
| 52 | 'dashicons-screenoptions', |
|
| 53 | 1310 |
|
| 54 | ])); |
|
| 55 | } |
|
| 56 | ||
| 57 | /** |
|
| 58 | * @return void |
|
| @@ 62-73 (lines=12) @@ | ||
| 59 | * @return void |
|
| 60 | * @action admin_menu |
|
| 61 | */ |
|
| 62 | public function addPage() |
|
| 63 | { |
|
| 64 | $this->hook = call_user_func_array( 'add_menu_page', apply_filters( 'pollux/settings/page', [ |
|
| 65 | __( 'Site Settings', 'pollux' ), |
|
| 66 | __( 'Site Settings', 'pollux' ), |
|
| 67 | 'edit_theme_options', |
|
| 68 | $this->id, |
|
| 69 | [$this, 'renderPage'], |
|
| 70 | 'dashicons-screenoptions', |
|
| 71 | 1313 |
|
| 72 | ])); |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * @return void |
|