D
Menu Cart for WooCommerce Content

Display always, or only when there are items in the cart

Display always, or only when there are items in the cart.

What it does

Display always, or only when there are items in the cart. It is one of the abilities the Menu Cart for WooCommerce 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:

woocommerce-menu-bar-cart.display-always-or-only-when-there-are-it
{
  "ability": "woocommerce-menu-bar-cart.display-always-or-only-when-there-are-it",
  "args": { "input": ... }
}

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

Keep exploring

More Menu Cart for WooCommerce abilities

All Menu Cart for WooCommerce abilities β†’
D
Display cart icon, or only items/prices
Menu Cart for WooCommerce
Display cart icon, or only items/prices.
D
Display items only, price only, or both
Menu Cart for WooCommerce
Display items only, price only, or both.
C
Customize your own CSS
Menu Cart for WooCommerce
Customize your own CSS