Closed giwrgos88 closed 8 years ago
If the wordpress is using any permission plugin how I can add permissions to the panel as well?
I saw the function addPanel inside the Herbert\Framework\Panel
protected function addPanel($panel) { add_menu_page( $panel['title'], $panel['title'], 'manage_options', $panel['slug'], $this->makeCallable($panel), isset($panel['icon']) ? $this->fetchIcon($panel['icon']) : '', isset($panel['order']) ? $panel['order'] : null ); if (isset($panel['rename']) && !empty($panel['rename'])) { $this->addSubPanel([ 'title' => $panel['rename'], 'rename' => true, 'slug' => $panel['slug'], 'parent' => $panel['slug'] ]); } }
and there is not any option of permission
@giwrgos88 This should now be working after https://github.com/getherbert/framework/pull/24 was merged.
It is not yet in the docs tough.
cool thanks @jeremyzahner
If the wordpress is using any permission plugin how I can add permissions to the panel as well?
I saw the function addPanel inside the Herbert\Framework\Panel
and there is not any option of permission