=== WunderAutomation === Contributors: wundermatics Tags: automation, ifttt Requires at least: 4.7 Tested up to: 5.3 Requires PHP: 5.6 Stable tag: 1.2.0 License: GPLv2 or later WordPress and WooCommerce task automation. Without code. == Description == WunderAutomation adds funtionality similar to "if this then that" to WordPress. The main purpose of WunderAutomation is to create simple and powerful automations without writing code. This makes the automated tasks human readable so that anyone (not just coders) can build, understand and maintain them. [](http://coderisk.com/wp/plugin/wunderautomation/RIPS-0uiPAVgjJV) == How it works == WunderAutomation runs **actions** that will be **triggered** automatically by common WordPress events such as publishing a post or receiving a comment. When an event is triggered WunderAutomation runs one or more defined actions, for instance adding a tag, changing a custom field or sending an email. Triggers and actions are kept together in a **workflow** and it's possible to create as many workflows as you want. 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. To get more control of when to fire an action, WunderAutomation uses **filters**. 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**. 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 == ##### 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: 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 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 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. == 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.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