Linux 软件免费装

Plusboat Editless

开发者 yeahns
更新时间 2026年11月29日 16:50
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

toolbar admin bar edit links

下载

1.0.0

详情介绍:

WordPress lets every user turn off Show Toolbar when viewing site on their profile. Do that and the admin bar disappears from the front end. The edit links do not. Themes keep printing their own "Edit" link under every post, next to every comment, and on term descriptions. Some plugins do it too. So a user who has just told WordPress "I do not want the editing interface while I read this site" still gets invited to click into wp-admin from every page. The usual fix has been to open the theme, find the edit_post_link() calls, delete them, and repeat the whole exercise after the next theme update. That is what this plugin does instead. How it decides Plusboat Editless does not have its own preference. It reads the one WordPress already has: if is_admin_bar_showing() is false for the current front end request, the edit links are hidden too. That means the plugin follows the user's profile setting, and it also respects another plugin that hides the toolbar with the show_admin_bar filter. What is hidden What is not touched The one thing no plugin can catch is a hard-coded link: if your theme builds the edit URL by hand with admin_url() instead of going through a core helper, it will still be there.

安装:

  1. Install the plugin from Plugins → Add New, or upload the zip with Plugins → Add New → Upload Plugin.
  2. Activate it. There is nothing else to do.
  3. Open your profile (Users → Profile) and uncheck Show Toolbar when viewing site, then visit the front end. The toolbar and the edit links are both gone.

升级注意事项:

1.0.0
  • First release.

常见问题:

Does this hide the toolbar as well?

No. WordPress already does that when a user unchecks the setting. This plugin only removes the edit links that other code prints anyway.

Why not just remove the edit links from my theme?

You can, until the next theme update replaces your edits. This keeps working across theme changes, and it applies to every theme and plugin that uses the core helpers.

Does it apply to administrators too?

It applies to every logged-in user who has the toolbar hidden, administrators included.

Can I force the behaviour on, or turn it off?

Yes. The decision comes from one filter: add_filter( 'plusboat_editless_suppress_edit_links', '__return_true' ); Returning false from that filter turns the plugin off completely for the request.

Does it work with block themes?

Yes. Block themes get their edit links from the admin bar and from the Comment Edit Link block, and both are covered.

Is anything stored in the database?

No. No options, no tables, no user meta. Uninstalling leaves nothing behind.

更新日志:

1.0.0