1 | <?php |
||
10 | class Archive extends Settings |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | CONST ID = 'archives'; |
||
16 | |||
17 | public $hooks = []; |
||
18 | |||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | public function init() |
||
31 | |||
32 | /** |
||
33 | * @return void |
||
34 | * @action admin_menu |
||
35 | */ |
||
36 | public function addPage() |
||
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | * @filter pollux/{static::ID}/before/instructions |
||
54 | */ |
||
55 | public function filterBeforeInstructions() |
||
63 | |||
64 | /** |
||
65 | * @param string $instruction |
||
66 | * @return string |
||
67 | * @action pollux/{static::ID}/instruction |
||
68 | */ |
||
69 | public function filterInstruction( $instruction, array $field, array $metabox ) |
||
73 | |||
74 | /** |
||
75 | * @return array |
||
76 | * @action pollux/{static::ID}/metabox/submit |
||
77 | */ |
||
78 | public function filterSubmitMetaBox( array $args ) |
||
83 | |||
84 | /** |
||
85 | * @param string $key |
||
86 | * @param mixed $fallback |
||
87 | * @param string $group |
||
88 | * @return string|array |
||
89 | */ |
||
90 | public function getMetaValue( $key, $fallback = '', $group = '' ) |
||
94 | |||
95 | /** |
||
96 | * @return void |
||
97 | * @action current_screen |
||
98 | */ |
||
99 | public function register() |
||
107 | |||
108 | /** |
||
109 | * @return void |
||
110 | * @action pollux/archives/init |
||
111 | */ |
||
112 | public function registerFeaturedImageMetaBox() |
||
117 | |||
118 | /** |
||
119 | * @return void |
||
120 | * @action pollux/archives/editor |
||
121 | */ |
||
122 | public function renderEditor( $content, $type ) |
||
137 | |||
138 | /** |
||
139 | * @return void |
||
140 | * @callback add_meta_box |
||
141 | */ |
||
142 | public function renderFeaturedImageMetaBox() |
||
162 | |||
163 | /** |
||
164 | * @return void |
||
165 | * @callback add_menu_page |
||
166 | */ |
||
167 | public function renderPage() |
||
181 | |||
182 | /** |
||
183 | * @return array |
||
184 | */ |
||
185 | protected function getDefaults() |
||
189 | |||
190 | /** |
||
191 | * @return string |
||
192 | */ |
||
193 | protected function getPostType() |
||
200 | |||
201 | /** |
||
202 | * @return array |
||
203 | */ |
||
204 | protected function getPostTypesWithArchive() |
||
211 | |||
212 | /** |
||
213 | * @return array |
||
214 | */ |
||
215 | protected function getSettings() |
||
219 | } |
||
220 |