[Feature Request] Filter For Admin Menu Capabilities
-
I would like to see in the future of this plugin a filter for changing the
add_submenu_page
capabilities. Currently 3 of them are hardcoded asadministrator
with no easy way to change this. Something like this maybe:add_submenu_page( 'wsdesk_tickets', 'E-Mail', esc_html__('E-Mail', 'wsdesk'), apply_filters( 'wsdesk_email_subpage_cap', 'administrator' ), 'wsdesk_email', array( $this->settings, 'eh_crm_email_sub_menu_callback' ) );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Feature Request] Filter For Admin Menu Capabilities’ is closed to new replies.