Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

emanuellopes
Copy link

  • 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
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.

None yet

2 participants