| 开发者 | ctrlwebinc |
|---|---|
| 更新时间 | 2026年12月2日 19:44 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.2 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
docs/PROTOCOL.md (included in the plugin), so anyone can build a compatible service.wp-config.php values, user names or email addresses, post content, server file-system paths, the database prefix or server IP addresses. The only file locations it can share are those of the optional PHP error counts, relative to the plugin or theme folder (see below).https://service.example)./.well-known/site-portrait) and shows you its name, privacy policy and the data it asks for. Tick the categories you agree to share.@ or excluded by error_reporting are not counted.E_WARNING or an exception class), the file relative to its plugin or theme folder (or to the WordPress folder for core files), the line, the plugin or theme and its current version, a keyed hash of the message, the number of occurrences and the first and last times. It also receives the number of critical and recommended items of the last Site Health check, as WordPress stored it.error_reporting, display_errors or WP_DEBUG, never hides an error and never writes to the PHP error log. Other error handlers keep working.debug.log is not read. At most 200 distinct groups are kept per day (totals keep growing beyond). The plugin or theme version is the one installed when the service reads the counts. On a multisite network, errors are counted for the whole installation.
For developers
The full protocol (discovery, pairing, request signatures, endpoints, errors, JSON schemas and test vectors) is in docs/PROTOCOL.md and docs/schema/. The filter site_portrait_scope_data lets other plugins add data to a category.
Licenses
The plugin code is licensed under the GPL, version 2 or later (GPL-2.0-or-later). The protocol specification and JSON schemas in docs/ are licensed under Creative Commons Attribution 4.0 (CC-BY-4.0), so that anyone can implement a compatible service.
No. The API is read-only. The only thing a service can do besides reading is end the connection.
The site only stores the service's public key, which cannot be used to send requests. The site's own private key is also stored; it only allows signing answers as your site and can be replaced from the settings page (Generate a new site key) or by disconnecting.
An application password gives a service every permission of the user who created it, and it can be reused by anyone who obtains it. This plugin gives read access to the chosen categories only, with signed, single-use requests.
HTTPS is required. For local development only, define SITE_PORTRAIT_DEV_MODE as true with a local or development environment type and a .test, .localhost or loopback host.
Read docs/PROTOCOL.md. It lists what a service must implement, with examples and test vectors.
platform member gives the WordPress version and, when detected, the Composer-based setup (Bedrock, Radicle, WordPlate, WP Starter or plain Composer) and Acorn. No file path, .env value or network request is involved.docs/test-vectors.json). Existing services keep working unchanged.