
外掛標籤
開發者團隊
原文外掛簡介
Some pages should stay out of search results: thank-you pages, landing pages for one campaign, thin or duplicate content. DevLab Noindex Toggle adds one checkbox to the edit screen, “Hide from search engines (noindex)”. Tick it, update the page, and the page asks search engines not to list it.
What it does
Adds a “Search engine visibility” box to the edit screen of posts, pages and other public post types, in the block editor and in the classic editor. Media items get it too while attachment pages are switched on.
On a ticked item, adds noindex, follow to the robots meta tag that WordPress prints: search engines are asked not to list the page and may still follow its links. If the site already says nofollow (for example when Settings > Reading discourages search engines), that is kept.
Works on the page chosen as “Posts page” in Settings > Reading too.
Adds an optional “Noindex” column to the post, page and media lists. You can turn it off on the settings screen.
A warning before you hide something important
Hiding the wrong page is easy to miss, so the plugin points out items that play a special role on your site:
The box on the edit screen says so when the item is your front page, your posts page, or linked in a menu.
In the list column, a hidden item with one of those roles is flagged.
The settings screen lists the hidden items (the 100 most recently modified) with a link to edit each one, and shows a warning when your front page or posts page is hidden.
Menus are read from Appearance > Menus and from the menus of the Navigation block (Site Editor). Menu items that point to the post or page count; custom links, and the Page List block that lists pages automatically, are not read. The plugin only warns: it does not untick a box or change a page by itself.
One robots tag
The directive goes into the robots tag WordPress already prints, so a ticked page has one robots tag. With Yoast SEO, which adds its values to that same tag, the result is still one tag with noindex. Once it is set up, Rank Math replaces that tag with its own; the plugin then adds the directive to the tag Rank Math prints. If other code removes the robots tag, the plugin prints its own .
What it does not do
It is not a lock. Noindex is a request; anyone with the address can still open the page. For private content use a password or the Private visibility.
It does not change your robots.txt, your sitemap, your .htaccess or your content. WordPress’s sitemap may still list a hidden page.
It does not apply to archives, categories, tags or search results.
It cannot promise how a search engine behaves. A page that is already in the results leaves only after the search engine visits it again.
What it stores
One option for its settings, one post meta row (_devlab_ni_noindex) for each ticked item and, for each user who dismisses its notice, one user meta entry. It creates no tables. Unticking an item deletes its row. Deleting the plugin from the Plugins screen removes all of these, on every site of a multisite network; from then on nothing adds the noindex directive, so those pages can be listed again.
On a single post or page the plugin reads data WordPress has already loaded and adds no database query. The page chosen as “Posts page” costs one small query. It loads no CSS or JavaScript on your public pages.
Privacy
The plugin collects no visitor data, sends nothing to external services, needs no account or API key and sets no cookies. Its settings screen has two links to the DevLab Store (devlab.ia.br) with utm_ tags that name this plugin; your browser contacts that site only if you click one.
For developers
Use the devlab_ni_post_types filter to change the post types that get the box:
add_filter( 'devlab_ni_post_types', function ( $types ) { return array_diff( $types, array( 'product' ) ); } );
About DevLab
DevLab builds plugins and a theme for WordPress. The plugin adds its screen under a DevLab menu, which it creates unless another DevLab plugin already did. That screen has one dismissible notice and a small box, each with a link to the DevLab Store (devlab.ia.br/store), which lists our free and paid plugins and a theme. The plugin adds nothing promotional anywhere else in your dashboard, and no credit link to your public pages.
Yoast SEO and Rank Math are trademarks of their respective owners. They are named only to describe compatibility; DevLab is not affiliated with them.
Source code
All JavaScript and CSS is plain, unminified source; there is no build step.
