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'); Seth Skydel, 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: Seth Skydel

Seth Skydel

Senior Contributing Editor, Fleet Equipment Magazine

GPS-Insight1
Share Tweet
Telematics

Optimizing trailer utilization: Using telematics to operate assets more efficiently

data-too
Share Tweet
Uncategorized

Leveraging data beyond ELD

Share Tweet
Uncategorized

Medium-duty truck manufacturers use telematics to enhance efficiency and performance

Share Tweet
Uncategorized

ELD do’s and don’ts

Share Tweet
Medium-Duty Supplement

OEMs are bringing safety technology to medium-duty trucks

Share Tweet
Medium-Duty Supplement

Body building: Programs for fleets can mean spec’ing more efficient and productive medium-duty trucks and bodies

© 2017. All Rights Reserved
  • Home
  • Home