D
If Menu - Visibility control for Menus Content

Display menus only for Admins and Editors

Display menus only for Admins and Editors

What it does

Display menus only for Admins and Editors It is one of the abilities the If Menu - Visibility control for Menus plugin exposes, so an AI agent connected to your site can run it for you.

Input schema

FieldTypeRequiredDescription
input string Required What you want this ability to do, in plain language.

Output schema

FieldTypeDescription
result string The result produced by the ability.

Permissions

The agent's WordPress user needs these capabilities. Grant only what's listed here, never a full admin account.

πŸ”’ edit_posts

How an agent calls it

Agents call this ability by name and pass the inputs it needs. A call looks roughly like this:

if-menu.display-menus-only-for-admins-and-editor
{
  "ability": "if-menu.display-menus-only-for-admins-and-editor",
  "args": { "input": ... }
}

The agent runs the ability, then hands the result back for you to review before anything is published.

Keep exploring

More If Menu - Visibility control for Menus abilities

All If Menu - Visibility control for Menus abilities β†’
C
Control what menu items your site's visitors see, with
If Menu - Visibility control for Menus
Control what menu items your site's visitors see, with visibility rules. Here are a few examples:
D
Display a menu item only if User is logged in
If Menu - Visibility control for Menus
Display a menu item only if User is logged in
D
Display menus for Users from US or UK
If Menu - Visibility control for Menus
Display menus for Users from US or UK
D
Display menus only for Customers with active membership
If Menu - Visibility control for Menus
Display menus only for Customers with active membership
D
Display menus for visitors browsing with Language English
If Menu - Visibility control for Menus
Display menus for visitors browsing with Language English or Spanish