The AcrossAI blog
Archives: Abilities
Get Post Translations
Which translations a post has, as a map of language code to post ID. Detects Polylang first, then WPML.
Set Post Language
Assign a language to a post or page. Works with Polylang and WPML, using each plugin’s own function so the language is recorded exactly…
Link Post Translations
Group posts in different languages as translations of each other, so the language switcher and hreflang tags point between them. Works with Polylang and…
Get Order
One WooCommerce order in full — every line, totals, tax, shipping, discounts, coupons, payment method and refunds. Personal details only on request; the customer…
Get Sales Summary
Revenue, orders, refunds, tax, shipping, average order value and distinct customers for a date range — calculated from the orders themselves, not the analytics…
Validate Contact Form Configuration
Run Contact Form 7’s own configuration validator and return what it finds, grouped by the property at fault. The difference between “the form saved”…
Update Contact Form Additional Settings
Change a form’s behaviour switches. Only four are writable. Turning on demo_mode or skip_mail stops the form delivering mail while it keeps reporting success,…
Get Contact Form Additional Settings
A form’s additional settings as parsed key/value pairs, flagging which are writable. Check here first when a form appears to work but nothing arrives…
Validate Contact Form Mail Tags
Check every mail tag used in a form’s mail templates against the fields the form actually has. Contact Form 7’s quietest failure — notifications…
List Contact Form Mail Tags
Every mail tag a form makes available — one per named field, plus Contact Form 7’s built-in tags for submission context such as date,…
Toggle Contact Form Autoresponder
Activate or deactivate a form’s autoresponder — the second mail template, sent to whoever submitted. Kept separate from editing its content, because switching it…
Update Contact Form Mail Template
Change fields of one mail template, merging into what is there. Changing the recipient requires confirm: true — a wrong address fails silently while…
Get Contact Form Mail Template
Read one of a form’s two mail templates — recipient, sender, subject, body, headers, attachments and the HTML and exclude-blank flags. mail is the…
Remove Contact Form Field
Remove a field from a form, along with the label wrapping it when that label held nothing else. Reports any mail tags left dangling.…
Update Contact Form Field
Change one field in place — its type, whether it is required, its options or its choices. Only that tag is rewritten. Renaming is…