Skip to content

feat: add filter to add a possibility to hide menu from other users#182

Closed
emanuellopes wants to merge 1 commit intoelementor:masterfrom
emanuellopes:feat/add-filter-for-menu-capability
Closed

feat: add filter to add a possibility to hide menu from other users#182
emanuellopes wants to merge 1 commit intoelementor:masterfrom
emanuellopes:feat/add-filter-for-menu-capability

Conversation

@emanuellopes
Copy link
Copy Markdown

  • Add a possibility to hide the admin menu for editors or or type of users using the filter apply_filters( 'aal_menu_page_capability', 'edit_pages')

To hide the menu from editors you can do it
add_filter('aal_menu_page_capability', function() {
return 'manage_options';
});

@KingYes
Copy link
Copy Markdown
Member

KingYes commented Apr 1, 2024

Merged by: #139

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants