Merge tag {workflow_revert_url: page_id=123}
Revert URL. The web address of a one-click link that sends the entry back to the step set in the approval step's revert setting for the assignee the email goes to. Works only in an approval step's assignee email; empty anywhere else.
On the test entry, {workflow_revert_url} gives http://fixture.gravitykit.test/wp-admin/admin.php?page=gravityflow-inbox&view=entry&id=501&lid=5001&gflow_access_token=eyJpYXQiOjE3Njg0Njc2MDAsImV4cCI6MTc3MTA1OTYwMCwic3ViIjoidXNlcl9pZHwyIiwic2NvcGVzIjp7InBhZ2VzIjpbImluYm94Il0sInN0ZXBfaWQiOjMsImVudHJ5X3RpbWVzdGFtcCI6ZmFsc2UsImVudHJ5X2lkIjo1MDAxLCJhY….
| Product | gravityflow |
|---|---|
| Requires | gravityflow 2.7.9 or later |
| Needs an entry | Yes. Its value comes from a form entry. |
Attributes
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
page_id= | text | No | — | The ID of the page that holds the [gravityflow] inbox shortcode, or admin for the WordPress dashboard. Defaults to the inbox page in Gravity Flow's settings, then the dashboard. |
assignee= | text | No | — | Build the link for this assignee instead of the person the email goes to, written as type|value: user_id|5, email|[email protected] or role|editor. |
step= | number | No | — | Build the link for this step instead of the entry's current step. |
Examples
Output from the real plugin code, run on a test entry.
| Merge tag | Output |
|---|---|
{workflow_revert_url} | http://fixture.gravitykit.test/wp-admin/admin.php?page=gravityflow-inbox&view=entry&id=501&lid=5001&gflow_access_token=eyJpYXQiOjE3Njg0Njc2MDAsImV4cCI6MTc3MTA1OTYwMCwic3ViIjoidXNlcl9pZHwyIiwic2NvcGVzIjp7InBhZ2VzIjpbImluYm94Il0sInN0ZXBfaWQiOjMsImVudHJ5X3RpbWVzdGFtcCI6ZmFsc2UsImVudHJ5X2lkIjo1MDAxLCJhY… |