D
If Menu - Visibility control for Menus Content

Display a menu item only if User is logged in

Display a menu item only if User is logged in

What it does

Display a menu item only if User is logged in 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_users

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-a-menu-item-only-if-user-is-logg
{
  "ability": "if-menu.display-a-menu-item-only-if-user-is-logg",
  "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 menus only for Admins and Editors
If Menu - Visibility control for Menus
Display menus only for Admins and Editors
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