WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Dynamicly Remove Admin Menu Items (7 posts)

  1. lap dog shuffle
    Member
    Posted 6 years ago #

    Hi, I'm modding a blog to be used as part of a kids media-training course. I've used add_theme_page() to create an additional admin page with that allows the kids to change stylesheet properties (with color pickers etc.) and upload new header images without using the "Theme Editor".

    Is there a way I can remove the "Theme Editor" & "Widgets" options without editing the admin source? ie. a function equivilent to "remove_theme_page()" - The blogs will be auto-updated and I don't want the options to suddenly re-appear.

    Thanks.

  2. mendezki
    Member
    Posted 6 years ago #

  3. lap dog shuffle
    Member
    Posted 6 years ago #

    thanks mendezki! that plugin must have passed me by...

  4. mendezki
    Member
    Posted 6 years ago #

    Me too, just came across it last week : )

  5. psychomachine
    Member
    Posted 6 years ago #

    does anybody know of a way to accomplish this -- remove certain admin menus -- in wp 2.5? custom admin menus plugin does not work with 2.5

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    All you really have to do is to modify the contents of the global $submenu; array. There's an action hook at '_admin_menu' that you can use. It fires right after the $submenu is populated.

  7. psychomachine
    Member
    Posted 6 years ago #

    yup, otto. many thanks for your suggestion.

Topic Closed

This topic has been closed to new replies.

About this Topic