1 | <?php |
||
10 | class Archive extends Settings |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | CONST ID = 'archives'; |
||
16 | |||
17 | public static $current; |
||
18 | |||
19 | public $hooks = []; |
||
20 | |||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | public function init() |
||
35 | |||
36 | /** |
||
37 | * @return void |
||
38 | * @action admin_menu |
||
39 | */ |
||
40 | public function addPage() |
||
54 | |||
55 | /** |
||
56 | * @return string |
||
57 | * @filter pollux/{static::ID}/before/instructions |
||
58 | */ |
||
59 | public function filterBeforeInstructions() |
||
67 | |||
68 | /** |
||
69 | * @param string $instruction |
||
70 | * @return string |
||
71 | * @action pollux/{static::ID}/instruction |
||
72 | */ |
||
73 | public function filterInstruction( $instruction, array $field, array $metabox ) |
||
77 | |||
78 | /** |
||
79 | * @return array |
||
80 | * @action pollux/{static::ID}/metabox/submit |
||
81 | */ |
||
82 | public function filterSubmitMetaBox( array $args ) |
||
87 | |||
88 | /** |
||
89 | * @todo: Use gatekeeper to check capability, wp_die(-1) on fail; |
||
|
|||
90 | * @return string |
||
91 | * @action wp_ajax_pollux/archives/featured/html |
||
92 | */ |
||
93 | public function getFeaturedImageHtml() |
||
101 | |||
102 | /** |
||
103 | * @param string $key |
||
104 | * @param mixed $fallback |
||
105 | * @param string $group |
||
106 | * @return string|array |
||
107 | */ |
||
108 | public function getMetaValue( $key, $fallback = '', $group = '' ) |
||
112 | |||
113 | /** |
||
114 | * @return void |
||
115 | * @action current_screen |
||
116 | */ |
||
117 | public function register() |
||
125 | |||
126 | /** |
||
127 | * @return void |
||
128 | * @action pollux/archives/init |
||
129 | */ |
||
130 | public function registerFeaturedImageMetaBox() |
||
135 | |||
136 | /** |
||
137 | * @return void |
||
138 | * @action pollux/archives/editor |
||
139 | */ |
||
140 | public function renderEditor( $content, $type ) |
||
155 | |||
156 | /** |
||
157 | * @return void |
||
158 | * @callback add_meta_box |
||
159 | */ |
||
160 | public function renderFeaturedImageMetaBox( $imageId = null ) |
||
181 | |||
182 | /** |
||
183 | * @return void |
||
184 | * @callback add_menu_page |
||
185 | */ |
||
186 | public function renderPage() |
||
200 | |||
201 | /** |
||
202 | * @return array |
||
203 | */ |
||
204 | protected function getDefaults() |
||
208 | |||
209 | /** |
||
210 | * @return string |
||
211 | */ |
||
212 | protected function getPostType() |
||
220 | |||
221 | /** |
||
222 | * @return array |
||
223 | */ |
||
224 | protected function getPostTypesWithArchive() |
||
231 | |||
232 | /** |
||
233 | * @return array |
||
234 | */ |
||
235 | protected function getSettings() |
||
239 | } |
||
240 |
This check looks
TODO
comments that have been left in the code.``TODO``s show that something is left unfinished and should be attended to.