Linux 软件免费装
Banner图

ReaderFlag – Report This Content Button

开发者 preetam960
更新时间 2026年12月1日 04:33
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

content report feedback moderation flag

下载

1.0.0

详情介绍:

ReaderFlag puts a "Report this content" button on your posts, pages and public custom post types. A visitor picks a reason, adds an optional message, and sends it. You see every report in a list in wp-admin, change its status, and get an email for each new one (you can turn the emails off). Features: The plugin makes no request to any other site unless you save the keys for a captcha service. See "External services" below.

安装:

  1. Upload the plugin folder to /wp-content/plugins/, or install it from the Plugins screen.
  2. Activate it through the Plugins screen.
  3. Open Reports > Settings to choose where the button appears, the reasons, the fields and the look.
  4. Reports arrive under Reports in the admin menu.

屏幕截图:

  • The inline mode: the form opens under the button, inside the post.
  • The reports list in wp-admin, with status filters, bulk actions and CSV export.
  • One report, with buttons to change its status or delete it.
  • Form settings: edit the reasons, set each field to required, optional or hidden, and pick a captcha.
  • Style settings with a live preview of the button and the form.

升级注意事项:

1.0.0 First release.

常见问题:

Where does the button appear?

By default after the content of posts. In Reports > Settings you can place it before the content, after it, both, or turn auto-placement off and place it yourself with the block, the shortcode [report_this_content], or rtcb_the_button() in a theme template.

Does it work with a page cache such as Batcache or an edge cache?

Yes. A cached page never holds a token or a nonce. When a visitor opens the form, the script asks the server for a token with a POST request to admin-ajax.php. POST requests are not cached, and the token response is sent with no-store headers. The token is signed, tied to the post and the user, valid for two hours and accepted once.

What is "Separate page (for strict caches)"?

It is a setting for the no-JavaScript fallback. Normally the fallback form is the post's own address with a flag in the query string. A cache that ignores query strings could serve one visitor's form state to another. Choose "Separate page (for strict caches)" and the fallback form is served from admin-post.php, which is never cached.

Does it work without JavaScript?

Yes. The trigger is a plain link to a page with the form. A visitor with JavaScript off fills it in and sends it as an ordinary form. Turnstile, hCaptcha and reCAPTCHA need their script, so with one of them selected a visitor without JavaScript sees a note to turn JavaScript on instead of the form. Choose "None" or the math question if the form must work without JavaScript.

Which captchas are supported?

None, a built-in math question (digits in English or Devanagari are accepted), Cloudflare Turnstile, hCaptcha, Google reCAPTCHA v2 checkbox and Google reCAPTCHA v3. A third-party captcha is used only after you save its site key and secret key, and its script loads only when a visitor opens the form. Secret keys are stored separately from the other settings and are never printed back in the settings screen.

How do I style the button and the form?

Use the Styles tab, or override these CSS variables in your theme (set them on .rtcb):

  • --rtcb-btn-bg, --rtcb-btn-text, --rtcb-btn-border
  • --rtcb-btn-hover-bg, --rtcb-btn-hover-text
  • --rtcb-btn-radius, --rtcb-form-radius
  • --rtcb-popup-width
  • --rtcb-accent, --rtcb-ink, --rtcb-surface, --rtcb-line, --rtcb-error
  • --rtcb-overlay
For other changes, add CSS in Appearance > Customize > Additional CSS (or Styles > Additional CSS in the Site Editor). You can also switch the plugin's stylesheet off in the settings and write your own.

Who can see the reports?

Users who have the moderate_comments capability (editors and administrators by default). Only administrators can change the settings. Use the rtcb_capability filter to change who moderates.

Can I add my own rules, reasons or fields?

Yes. See "Developer hooks" below.

更新日志:

1.0.0