| 开发者 | alexanderwp |
|---|---|
| 更新时间 | 2026年12月3日 07:30 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[awp_support_portal]) or a dynamic block: open tickets, review history and reply, and find tickets fast with the built-in filters (status, priority, category and reference/subject search), with a results summary and paginated links that keep the active filters.awp_agent, awp_manager, awp_customer, awp_admin).awp/v1 for tickets, messages and attachments, using the same permissions as the screens: cookie plus X-WP-Nonce or WordPress application passwords, role-scoped lists, moderator-only internal notes and nonce-protected attachment downloads.wp awp ticket list, wp awp ticket create and wp awp ticket assign, with table, JSON, CSV, id and count output.add_filter( 'awp/feedback/send_deactivation_notice', '__return_false' );.
Export and erasure (GDPR)
The plugin registers a personal data exporter and eraser with the WordPress privacy tools under the name AWP Support Desk. An export (Tools → Export Personal Data) includes the tickets opened with the requested email address, every message and attachment authored with that account, and the audit events linked to it, in paginated groups. An erasure request (Tools → Erase Personal Data) deletes those tickets (messages, meta, attachments and stored files included), deletes messages and uploads the account made on other people's tickets, and anonymizes the audit trail by removing the user id and the IP address while keeping the event rows so ticket history stays complete.
What may legitimately remain after an erasure request: audit events without personal data (kept for security and abuse prevention), backups under the site's own retention policy, and emails already delivered to a mailbox. Erasure is destructive and cannot be undone; the WordPress user account itself is not deleted.
Administrators can also wipe the whole desk from Support Desk → Settings → Data and privacy: the card lists what the site holds and deletes every ticket, reply, internal note, attachment file, audit event, canned reply and category, together with the desk configuration, after the word DELETE is typed by hand. Roles, capabilities and user accounts are kept and the desk stays active with an empty history. Deleting the plugin keeps the data by default; the same card holds the opt-in that also deletes the data when the plugin is uninstalled.
A suggested privacy policy text is published for Settings → Privacy → Privacy Policy Guide, so the site owner can copy an accurate description into their own policy. The full data map (tables, visibility, retention, export groups, erasure behaviour and its limits) lives in docs/PRIVACY.md.
awp-support-desk folder to /wp-content/plugins/.[awp_support_portal] shortcode or the AWP Support Portal block.Yes. WooCommerce integration is optional and lives in the Pro add-on.
Tickets and messages live in your own WordPress database. No ticket content is sent to AWP servers.
The plugin plugs into the WordPress privacy tools: Tools → Export Personal Data and
Tools → Erase Personal Data. An export includes the tickets opened with the email address, the
messages and attachments authored with that account, and the audit events linked to it. An erasure
request deletes those tickets, messages and attachments (files included) and anonymizes the audit
trail without the user id or IP address. To wipe the whole desk instead, Support Desk → Settings →
Data and privacy deletes all of its content and configuration after you type DELETE. See
docs/PRIVACY.md for the full list of what is kept and what is removed.
No. Tickets, agents and customers are unlimited. Features that require automation, external channels or business integrations are part of the separate Pro add-on.
Yes. The plugin exposes awp/v1 routes for tickets, messages and attachments under /wp-json/awp/v1/. Requests authenticate with the standard WordPress stack: a logged-in cookie plus the X-WP-Nonce header for same-origin clients, or application passwords for server-to-server integrations. Permissions match the screens, so customers only see their own tickets, internal notes are staff-only and attachments download through a nonce-protected URL. The full contract is in docs/REST-API.md in English and Spanish.
Attachments are stored in a private directory (wp-content/uploads/awp-support-desk-attachments/ by default, resolved with wp_upload_dir()) with an Apache .htaccess deny rule and an IIS web.config rule; both are rewritten whenever they are missing. Nginx ignores .htaccess, so on nginx add a deny block to your server config, or move the directory outside the web root:
location ^~ /wp-content/uploads/awp-support-desk-attachments/ { deny all; }
The storage directory can be relocated with the awp/attachment_storage_dir filter. Direct downloads always go through a nonce-protected endpoint and the files use unguessable random names, but the deny block restores the same guarantee Apache has.
Deleting the plugin keeps tickets, settings and the AWP roles by default, so deleting it by accident does not destroy your support history. To remove everything on uninstall, set the awp_delete_data_on_uninstall option to true (or filter awp/uninstall/delete_data) before deleting the plugin. On multisite the cleanup runs for every site, and users who only had an AWP role are moved to the Subscriber role instead of being left without one.
Yes. Three WP-CLI commands cover the common operations:
wp awp ticket list --status=open --assignee=3 --format=json lists tickets with the same filters as the inbox.
wp awp ticket create --customer=12 --subject="…" --body="…" opens a ticket with the cli channel.
wp awp ticket assign 7 --agent=3 assigns a ticket; --unassign clears the assignee.
Every command enforces the same capability as its screen, so run them with --user=<admin> (or another user that holds the capability). Output supports table, JSON, CSV, ids and count.
0000-00-00 00:00:00 as the default of its timestamp
columns, a value MySQL 8 in strict mode rejects. Revision 0012 repairs installations that already
ran the old revision by rewriting zero-date rows and leaving both columns DATETIME NOT NULL
without a default.awp/rate_limits filter.wp_mail() and bypass PHPMailer.awp/reports/superseded_by lets an add-on replace the basic
Support Desk → Reports screen. The Pro add-on returns its advanced report
URL, so Free hides the duplicated submenu and redirects old bookmarks.Message-ID header and assign
the signed value to it, so the outgoing message has a single, threadable
Message-ID..pptx) attachments are accepted by the shared attachment
policy, with the same ZIP container validation used for DOCX and XLSX.awp/ticket/status_changed fires after a status change is
committed, with the previous status, so an add-on can react to a closure
without patching the Free screen.ticket.reopened audit event, which advanced reports use to count
reopenings without parsing the status history.awp/ticket/sidebar fires at the end of the ticket sidebar for
users who can view the ticket, so an add-on can render read-only context
cards without patching the Free screen.awp/ticket_created fires after a ticket and its first message
are committed, so an add-on can tag or assign the ticket without touching the
creation transaction. A failing listener cannot roll the ticket back.awp/ticket/assignment_actions fires after the assignee card on
the ticket screen, only for users who can assign tickets, so an add-on can
render its own assignment controls.awp/inbox/ticket_indicators filter. Add-ons return plain labels and
a whitelisted tone; the inbox escapes them, so no add-on injects markup into the Free screen.WHERE column now joins the conditions with AND.
A multi-column update could fail with a database syntax error.uploads/awp-support-desk-attachments/, resolved with wp_upload_dir()), with the
.htaccess and web.config deny rules rewritten whenever they are missing or stale, and a
one-time migration for files stored by 1.0.0 under wp-content/.awp_view_tickets grant, so a role whose view
capability was revoked can no longer receive ticket subjects and metadata.awp-software.com.awp/v1, WP-CLI ticket commands and WordPress privacy export/erase tools.DELETE typed by hand. The plugin ships no telemetry.awp/v1 for tickets, messages and attachments.wp awp ticket list, create and assign.0002 and 0003), one user-cache
prime per page instead of a lookup per row, and documented pagination and search limits.