Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8408607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:40:47+00:00 2026-06-09T23:40:47+00:00

I am working on a template and I am currently trying to find a

  • 0

I am working on a template and I am currently trying to find a solution or method to effectively hide the THEME OPTIONS located in APPEARANCE from another admin user?

I would not like to strip my co-admin from his “admin privileges” and change him to a lower class however I am seeking a possibility to hide this element from him so that he can’t change the main theme options/settings.

Some help would be greatly appreciated.

Thank you very much,
Patrick

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T23:40:48+00:00Added an answer on June 9, 2026 at 11:40 pm

    You could use the built in WordPress function remove_submenu_page in a function which checked for a specific user ID. You would hook that to admin_head.

    <?php
    
    function hide_menu() {
     global $current_user;
     $user_id = get_current_user_id();
     // echo "user:".$user_id;   // Use this to find your user id quickly
    
        if($user_id != '1') {
    
            // To remove the whole Appearance admin menu you would use;
            remove_menu_page( 'themes.php' );
    
            // To remove the theme editor and theme options submenus from
            // the Appearance admin menu, as well as the main 'Themes'
            // submenu you would use 
    
            remove_submenu_page( 'themes.php', 'themes.php' );
            remove_submenu_page( 'themes.php', 'theme-editor.php' );
            remove_submenu_page( 'themes.php', 'theme_options' );
    
        }
    }
    
    add_action('admin_head', 'hide_menu');
    ?>
    

    However, it should be noted (as per the comments) that using this only hides the menu item it doesn’t completely disable it and it could be accessed directly from the browser. If you really have to keep this other person as an administrator rather than a user with lower privileges, and you have to make sure they cannot access the theme options at all then you should think about using a plugin to create a new user access level with custom capabilities (I say use a plugin as I don’t believe there’s any point in coding that up yourself, you are just reinventing the wheel).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently i am working on developing one Warehouse solution from scratch, i am planning
I'm trying to implement Knockout.js-External-Template-Engine using a working demo of nested templates Currently I
I'm currently working on a new Magento template, and I'm facing problems with jQuery.
I'm currently working on an iphone application. I started working on this from a
I am currently trying to show/hide a custom ribbon button based on the value
Working on learning Django, and at the moment (trying to) have a template that
I am currently developing my own Wordpress theme and have been recently working on
i'm currently trying to implement UPLOADIFY to a wordpress template page. I implemented it
currently I'm trying to get multi upload in my admin interface working. I'm using
I'm a newbie on grails. I am now currently working on my scaffolding templates

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.