外掛標籤
開發者團隊
原文外掛簡介
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.
No toolbar, no edit links. That is the entire rule.
Nothing to configure. There is no settings screen, because there is nothing to set.
Nothing is written to the database.
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
Post edit links, including the ones your theme prints with edit_post_link() and any it
builds by hand from get_edit_post_link().
Comment edit links, including the ones core prints in comment lists and the
Comment Edit Link block prints in block themes.
Term edit links from get_edit_term_link() and edit_term_link().
What is not touched
wp-admin. The toolbar, the list table row actions, the editor, the Site Editor: all
unchanged. Only front end page views are affected.
Notification emails. WordPress builds the edit link in comment notification emails
with a non-display context, and this plugin stays away from it, so admins keep their links
in their inbox.
REST and Ajax requests. They keep their edit URLs, so the editor and any front end
script that needs one still works.
Logged-out visitors. Nothing changes for them.
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.
