API Reference

WordPress / API Reference

wc_set_personal_data_retention

WooCommerce tool. Configure how long WooCommerce retains personal data for inactive accounts, failed/pending orders, and completed orders

This is a write tool: it sets personal data retention in your WordPress account. Claude asks you to confirm before it runs.

Ask Claude

You do not call this tool yourself. Ask for the outcome and the client picks the tool:

Set personal data retention in my WordPress account.

It takes 0 required and 6 optional parameters.

Parameters

ParameterTypeRequiredDescription
woocommerce_delete_inactive_accountsstringNoWoocommerce Delete Inactive Accounts
woocommerce_trash_pending_ordersstringNoWoocommerce Trash Pending Orders
woocommerce_trash_failed_ordersstringNoWoocommerce Trash Failed Orders
woocommerce_trash_cancelled_ordersstringNoWoocommerce Trash Cancelled Orders
woocommerce_anonymize_completed_ordersstringNoWoocommerce Anonymize Completed Orders
woocommerce_delete_cancelled_ordersstringNoWoocommerce Delete Cancelled Orders

Related WordPress tools

Start free — 30 tool calls a month

No card required. Connect Google Ads, Meta Ads, GA4 or Search Console and ask Claude for the outcome — it picks the tool.