@@ 187-204 (lines=18) @@ | ||
184 | /** |
|
185 | * @return void |
|
186 | */ |
|
187 | private function addEventsAddEditHeader() |
|
188 | { |
|
189 | if ( |
|
190 | $this->capabilities->current_user_can( |
|
191 | 'ee_read_events', |
|
192 | 'ee_admin_bar_menu_espresso-toolbar-events-view' |
|
193 | ) |
|
194 | ) { |
|
195 | $this->admin_bar->add_menu( |
|
196 | array( |
|
197 | 'id' => 'espresso-toolbar-events-add-edit', |
|
198 | 'parent' => 'espresso-toolbar-events', |
|
199 | 'title' => esc_html__('Add / Edit', 'event_espresso'), |
|
200 | 'href' => '', |
|
201 | ) |
|
202 | ); |
|
203 | } |
|
204 | } |
|
205 | ||
206 | ||
207 | ||
@@ 284-301 (lines=18) @@ | ||
281 | /** |
|
282 | * @return void |
|
283 | */ |
|
284 | private function addEventsViewHeader() |
|
285 | { |
|
286 | if ( |
|
287 | $this->capabilities->current_user_can( |
|
288 | 'ee_read_events', |
|
289 | 'ee_admin_bar_menu_espresso-toolbar-events-view' |
|
290 | ) |
|
291 | ) { |
|
292 | $this->admin_bar->add_menu( |
|
293 | array( |
|
294 | 'id' => 'espresso-toolbar-events-view', |
|
295 | 'parent' => 'espresso-toolbar-events', |
|
296 | 'title' => esc_html__('View', 'event_espresso'), |
|
297 | 'href' => '', |
|
298 | ) |
|
299 | ); |
|
300 | } |
|
301 | } |
|
302 | ||
303 | ||
304 |