| 开发者 | marc4 |
|---|---|
| 更新时间 | 2026年5月30日 22:49 |
| PHP版本: | 8.2 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
db:read / db:write — database queries via $wpdbdb:read:users / db:write:users — read and write access to user data (also covers wp_delete_user and wp_update_user)http:outbound — outbound HTTP requests via the WordPress HTTP APIoptions:read / options:write — WordPress options via get_option / update_option (see limitations)email:send — sending email via wp_mail()cron:write — scheduling events via wp_schedule_event()transients:write — writing transients via set_transient()users:create — creating users via wp_create_user() (updates and deletes are covered by db:write:users)rest:register — registering REST API endpoints via register_rest_route()shortcode:register — registering shortcodes via add_shortcode()rewrite:register — registering rewrite rules via add_rewrite_rule()admin:menu — adding entries to the admin menu and submenusdashboard:widget — adding dashboard widgets via wp_add_dashboard_widget()hooks:frontend — hooking into frontend hooks (wp_head, wp_footer, the_content, wp_enqueue_scripts...)hooks:admin — hooking into admin hooks (admin_head, admin_notices, admin_enqueue_scripts...)hooks:auth — hooking into authentication hooks (wp_login, wp_logout, user_register, authenticate...)hooks:content — hooking into content hooks (save_post, delete_post, pre_get_posts, wp_handle_upload...)hooks:lifecycle — hooking into plugin and theme lifecycle hooks (activated_plugin, deactivated_plugin, switch_theme...)options.php, the call stack contains core files rather than the plugin files.
Specific limitations:
options:read / options:write — work when a plugin calls these APIs directly from its own code (hooks, AJAX, cron). Do not block standard WordPress settings forms processed by options.php.file_get_contents, fopen, etc.) is not intercepted.mysqli connections, eval(), and raw PHP file functions bypass all interceptors.wp_update_user() and wp_delete_user() are covered by db:write:users since they write directly to the users table.admin_init is intentionally excluded from hooks:admin as it is too critical to block safely.plugseal folder to /wp-content/plugins/.No. Multisite is not supported in this version.
Data is preserved by default. To delete all data on uninstall, enable the option in the settings page before deleting the plugin.
Yes, if a plugin makes direct database connections or filesystem calls without using WordPress APIs, or if WordPress core processes actions on its behalf. These are known limitations documented above.