restrict admin panel sections to users
Add the following, to functions.php of the current theme (child theme is preferred!): CSS solution: function no_email_changes_in_profile() { $screen = get_current_screen(); if (‘profile’ == $screen->base && !current_user_can(‘manage_options’)) { echo ‘<style> input#email { pointer-events: none; } </style>’; } } add_action(‘admin_head’, ‘no_email_changes_in_profile’); jQuery solution: function no_email_changes_in_profile() { $screen = get_current_screen(); if (‘profile’ == $screen->base && !current_user_can(‘manage_options’)) { … Read more