Update product flow mapping is a WordPress ability from CartFlows — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Update product flow mapping

Write
CartFlows Ecommerce cartflows/update-product-flow-mapping

Set or clear the CartFlows funnel mapping on a WooCommerce product.

Requires the CartFlows plugin on WordPress 6.9+, since abilities only register when WordPress's Abilities API (wp_register_ability / WP_Ability) is available. Every ability additionally requires the current user to hold the 'cartflows_manage_flows_steps' capability. Flow and step lifecycle abilities (publish, unpublish, clone, trash, restore, update, reorder, clone-step, update-step-title) are further gated by the 'cartflows_abilities_api_edit' site option, while settings, checkout, thank-you, optin, email-report, product-mapping, creation, and template-import abilities are gated by the separate 'cartflows_abilities_api_write' option — both default to enabled but let site admins disable write access independently. WooCommerce must also be active for the analytics, checkout, thank-you, optin, and product-flow-mapping abilities, and for importing flow templates.

What it does

This ability sets which funnel a WooCommerce product redirects into after add-to-cart, and optionally sets a custom add-to-cart button text override. Set flow_id to 0 to clear an existing mapping. Requires WooCommerce.

See it in action

You ask your AI assistant

"Map product 501 to redirect into funnel 42 when added to cart."

Inputs

Name Type Required Description
product_id integer Yes The WooCommerce product ID.
flow_id integer No Flow ID to map. Set to 0 to clear the mapping.
add_to_cart_text string No Custom add-to-cart button text. Empty string clears it.

Returns

An object with product_id, the saved flow_id, flow_title, add_to_cart_text, and a result message.

Permission

The current user must have the 'cartflows_manage_flows_steps' capability, and the 'cartflows_abilities_api_write' site option (enabled by default) must not be disabled.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.