Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

241
Vistas
Is there a way to hide menu items from specific admin ID's in Wordpress

I have 3 admin accounts: one admin for me (shows everything) and 2 others where they need admin access to most items.

I was able to hide the main menu items (posts, pages, comments, appearance, etc) in the functions, however what about hiding menu items that are created from a plugin or other ones that are not part of the Wordpress central menu item list?

For example, Contact Form 7 Database creates 'Contact Forms' on the side bar menu or Google Google Site Kit creates 'Site Kit', and I have others where id like to hide them based on the username or user ID.

anyone know how to do that?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can use such a Jewish method, which of course it does not promote, but it is effective: There is function in wordpress get_role( string $role ). You can just one of two methods:

  1. For lazy people. Just call function in functions.php that generate some css with display:none for individual users.
  2. Second, is similar. Just find where plugin or theme generates these items and use function mentioned above to render them for individual roles. I recommend using String Locator plugin to find code in site.
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda