=== WunderAutomation === Contributors: wundermatics Tags: automation, ifttt, zapier Requires at least: 4.7 Tested up to: 5.4.1 Requires PHP: 5.6 Stable tag: 1.4.3 License: GPLv2 or later WordPress and WooCommerce task automation. Without code. == Description == WunderAutomation adds functionality similar to "if this then that" or Zapier to WordPress. The main purpose of WunderAutomation is to create simple and powerful automations without writing code. This enables anyone (not just coders) to build, understand and maintain automations in WordPress. Human Friendly. [youtube https://www.youtube.com/watch?v=qyKyDJOq2VI] [](http://coderisk.com/wp/plugin/wunderautomation/RIPS-0uiPAVgjJV) == Whats's new == Version 1.4 adds several new important features. The most important one is that it's now possible to send HTML emails. You can style them using templates or just select to reuse the same style as you already set up in WooCommerce [Read more about HTML emails here](https://www.wundermatics.com/docs/sending-html-emails/). It's also possible to generate uniqe links to send to users for things like email or phone number verification. == How it works == WunderAutomation lets users create [workflows](https://www.wundermatics.com/docs/workflows/?utm_source=readme&utm_medium=readme&utm_campaign=potential_users) that automated common WordPress tasks. A [workflow](https://www.wundermatics.com/docs/workflows/?utm_source=readme&utm_medium=readme&utm_campaign=potential_users) consists of a [trigger](https://www.wundermatics.com/docs/triggers/), [filters](https://www.wundermatics.com/docs/filters/?utm_source=readme&utm_medium=readme&utm_campaign=potential_users) and one or more [actions](https://www.wundermatics.com/docs/actions/?utm_source=readme&utm_medium=readme&utm_campaign=potential_users). When an event is triggered WunderAutomation runs one or more actions, for instance adding a tag, changing a custom field or sending an email. WunderAutomation supports WooCommerce out of the box so it can trigger on WooCommerce events such as receiving an new order and perform actions like adding an order note or updating the order status. WunderAutomation uses [filters](https://www.wundermatics.com/docs/filters/) to give the user better control of when to execute the actions. Filters will check things like the title or content of a post, the email domain of the user submitting a comment or if a new WooCommerce order contains products from a certain category. Filters can be combined in one or more groups to effectively use boolean AND/OR rules to decide if a triggered event should cause an action to run. Actions can be customized using [parameters](https://www.wundermatics.com/docs/parameters/?utm_source=readme&utm_medium=readme&utm_campaign=potential_users). A parameter will get its value from the post / order / comment that triggered the event and contains values like the post ID, title and content, user or customer email address etc. Where applicable, parameters like "post_date" can be formatted to suit most needs. == Built in functionality == Also see: [built in triggers](https://www.wundermatics.com/docs/built-in-triggers/?utm_source=readme&utm_medium=readme&utm_campaign=potential_users) ##### Triggers Triggers are used to start a workflow * __User__; Created, Login, Profile updated, Role changed. * __Post__: Created, Pending, Published, Privatized (publised as private), Saved, Status changed and trashed. * __Order__ (WooCommerce): Created, OnHold, Paid, Processing, Completed, Pending, Refunded, Saved, Cancelled * __Comment__: Submitted, Approved, Status changed ##### Filters: Also see: [built in filters](https://www.wundermatics.com/docs/built-in-filters/?utm_source=readme&utm_medium=readme&utm_campaign=potential_users) Filters can be used to filter out triggered events so that only certain events actually leads to an action being performed. * __User__: Email, Role * __Post__: Title, Content, Tags, Categories, Owner, Status, Type * __Order__: Billing city, Billing country, Billing state, Downloadable products, Virtual products, Payment method, Producs, Product categories, Producs tags, Shipping city, Shipping country, Shipping state, Order total * __Comment__: Author email, Author name, Content, Status, Type ##### Actions Also see: [built in actions](https://www.wundermatics.com/docs/built-in-actions/?utm_source=readme&utm_medium=readme&utm_campaign=potential_users) Actions are things a workflow can do / change / update as a result of a trigger * Add / update custom field * Change user role * Change post / comment status * Add / remove taxonomy term (tag or comment) * Send email * Run a http request to a remote REST API * Add WooCommerce order note ##### Parameters Also see: [built in parameters](https://www.wundermatics.com/docs/built-in-parameters/?utm_source=readme&utm_medium=readme&utm_campaign=potential_users) Parameters are used to customize an action with content from the object (post, order, user) that triggered it. * __User__: If, First name, Last name, Email, Nickname, Role * __Post__: Id, Title, Content, Slug, Admin url, public url, date, modified date, Comment count * __Order__: Id, Status, SubTotal, Total excl. tax, Total tax, Stripe fee, Paypal fee, Payment method, Customer email, Shipping and billing address fields == Extend == Out of the box, WunderAutomation supports more than 20 different triggers, 30 different filters, 8 actions and more than 50 parameters but if that's not enough, WunderAutomation is extensible and allows developers to add their own triggers, filters and actions. See [https://www.wundermatics.com/product-category/wunderautomation/](https://www.wundermatics.com/product-category/wunderautomation/?utm_source=readme&utm_medium=readme&utm_campaign=potential_users) for avaiable addons. == Logging == WunderAutomation logs everything it does and in the interest of being human friendly, it also comes with a searchable log viewer. This makes it easy to keep track of what triggers that has fired, if the filters passed OK or not and if the actions was carried out or not. == Installation == ### Install from within WordPress Visit the plugins page within your dashboard and select ‘Add New’ Search for ‘WunderAutomation’ Click 'Install' and wait until the button caption changes to 'Activate' Click 'Activate' ### Install manually Download the zip file Upload the wunderautomation folder from the zip to the /wp-content/plugins/ directory on your server Navigate to the Plugins page in WordPress admin and locate the WunderAutomation plugin Click 'Activate' == Changelog == = 1.4.3 = * Adds Order note (WooCommerce) trigger to specifically trigger on order notes * Adds parameters for Order Shipping method and Shipping zone (WooCommerce) * Adds filters for Order Shipping method and Shipping zone (WooCommerce) * Adds a Comment content filter * Adds new parameter modifier for date parameters to add/sub time from the returned date = 1.4.2 = * Emergency fix for Vue error in Workflow editor = 1.4.1 = * Adds order status filter * Fixes issues with sending WooCommerce emails from certain triggers (User login) that runs before WordPress is fully initialized * Fixes issue with filters in the workflow listing * UI improvements to make it easier to find relevant documentation = 1.4.0 = * Adds new actions for sending HTML emails. * Adds parameter type for creating confirmation links * Adds trigger type for detecting clicks on confirmation links * Workflows can be grouped into categories for easier navigation of related workflows * Fix: Change custom field action did not take formulas into account for numerical values * Fix: Issue with no or wrong user being associated with a workflow triggered by a post trigger = 1.3.3 = * Adds new action: Create post * Adds new filters: Referer post id and Referer url * Adds new parameters: Referer post id and referer url * Internal - better handling of names and captions for some filters and parameters * Internal - Adds post types and statuses to shared state object in Vue = 1.3.2 = * Adds filters for customer order count (completed and total) * Adds parameter for generating WooCommerce coupons * Fixes formatting issues with generated placeholders for parameters = 1.3.1 = * Fixes issue with js/css not loading when creating new workflow * Bump the "tested to" version to 5.4 = 1.3.0 = * Feature: Experimental support for delayed workflows. Ability to delay an action to minutes, hours or days after the event occured. * Improved phone number formatting for using phone numbers with remote APIs * Fixes bug with assigning correct owner/author when a workflow is triggered by a post * Adds promotional page for addons available at Wundermatics.com * Fixes issue where the WunderAutomation scripts would load on all pages in the admin area = 1.2.0 = * Adds reply-to, cc and bcc parameters to Send email action * Adds line break handling to email action * Adds support for Advanced Custom Fields as filter and parameters * Adds Billing Email, Billing Company and Shipping Company as filters for WooCommerce Orders = 1.1.0 = * Adds parameter "Date" to WooCommerce orders to return order created date * Adds parameter "PaidDate" to WooCommerce orders to return order paid date * Adds default date format to the settings screen. * Adds option to format phone number parameter in e.164 standard (compact with international prefix, suitable for API usage in ie Twilio) * Adds option to URL encode any parameter * Where applicable, adds option to return parameter value as either key or label. I.e returning "France" instead of "FR" * Adds extra rows to parameter test page to display both key value and label for parameters that supports being returned as a label = 1.0.1 = * Adds data type field to custom fields action * Adds trigger Saved (posts) * Adds filter Initiator * Fixes issue with field name when custom field parameter * Fixes issue with parameter test page on non english sites