跳到内容

DecaRoy Site Helper

v1.0.2

decaroy · 2026年5月5日 上架

Tiny REST API endpoint to manage custom <head> meta tags (e.g. Google Site Verification) programmatically.

正在使用
10 以下
评分
暂无
累计下载
366
最近更新
2026年5月6日
需要 WordPress 5.5+已测试到 6.9.12PHP 7.4+

贡献者

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

  • Single REST endpoint at /wp-json/decaroy/v1/head-meta
  • GET — read current configuration
  • POST — set the Google Site Verification token (validated against
    Google’s expected format)
  • DELETE — remove the configured token
  • Token is rendered as &lt;meta name="google-site-verification" ...&gt;
    in the <head> via wp_head action
  • No tracking, no phone-home, no remote calls
  • No database tables, no cron jobs

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums