Linux 软件免费装

DecaRoy Site Helper

开发者 decaraoy
更新时间 2026年5月6日 05:36
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

automation rest-api meta tag google site verification

下载

1.0.2

详情介绍:

DecaRoy Site Helper is a minimal plugin that adds a single REST API endpoint to read, write, and delete a Google Site Verification meta tag that is then injected into the document <head> on every page. The plugin is intended for sites managed programmatically by automation tools that need to verify domain ownership in Google Search Console without giving the automation tool FTP or filesystem access. Features How it works When a token is set via POST, it is stored in a single WordPress option (decaroy_gsc_verification_token). On every page render, the plugin hooks into wp_head and emits a meta tag with the token. Google can then read that meta tag during the verification step, after which the domain becomes available to the verifying account in Search Console. Authentication uses standard WordPress capabilities: the requesting user must have manage_options (typically administrators). Pair with WordPress Application Passwords for headless authentication.

安装:

  1. Upload the plugin folder to /wp-content/plugins/ or install directly through the WordPress plugins screen.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Use the REST endpoint to set a token:
POST /wp-json/decaroy/v1/head-meta Content-Type: application/json Body: {"gsc_verification_token": "abcd...your-token..."}

升级注意事项:

1.0.2 Documentation fix (Contributors username). No code changes. 1.0.1 Removed unused Plugin URI. No code changes. 1.0.0 First public release.

常见问题:

Does this plugin track my visitors?

No. The plugin makes no remote calls and stores no data beyond the single Google Site Verification token in WordPress options.

Is the meta tag visible to anyone?

Yes. By design, Google Site Verification meta tags are visible in the HTML source — that is how Google verifies them. The token itself is not sensitive: knowing it does not grant any access.

What capability does the REST endpoint require?

manage_options. Only administrators can read or write the token.

Can I use this with other meta tags besides Google Site Verification?

Currently the plugin handles only the google-site-verification meta tag. Future versions may add support for additional meta tags.

更新日志:

1.0.2 1.0.1 1.0.0