Inserting fixes

Connect WordPress to insert links

Make a dedicated Editor user and an application password so NodeLens can insert links into WordPress posts and pages, and revoke it any time.

On this page
  1. What you need
  2. Steps: create the user and password
  3. Steps: connect in NodeLens
  4. What the check looks for
  5. What NodeLens edits
  6. Revoke access
  7. Questions

To insert links into WordPress, you give NodeLens its own Editor user and an application password. NodeLens then edits the content of your posts and pages through the WordPress REST API. It can’t change plugins, themes, users or settings, and it can’t publish, delete or unpublish anything.

What you need

Requirement Why
An https address NodeLens refuses plain http and addresses with a path
The REST API at /wp-json/ NodeLens reads and writes through it
Application passwords switched on NodeLens signs in with one
A WordPress administrator To create the NodeLens user
An owner or admin in NodeLens Only they can connect a CMS
A plan Insert isn’t part of the free crawl

Steps: create the user and password

  1. In WordPress, go to Users → Add New and create a user such as “nodelens”.
  2. Set its Role to Editor and save.
  3. Signed in as that user, open Users → Profile → Application Passwords.
  4. Name it “NodeLens” and add it.
  5. Copy the password. WordPress shows it once.

Use Editor, not Administrator or Author. NodeLens refuses accounts that can do more than edit content, and accounts that can’t edit every published post and page.

Steps: connect in NodeLens

  1. In Actions, pick fixes and press Insert.
  2. Under Your CMS, choose WordPress.
  3. Enter the Site address, such as https://example.com. It’s where /wp-json/ lives, with no path.
  4. Enter the User name and the Application password. Not your sign-in password.
  5. Press Connect and check. When the check passes, the preview opens. If it passes with a note, press Continue to the preview.

NodeLens fills in your site’s address when it can. It doesn’t follow redirects, so enter the exact address your site answers on, with or without www. The password is kept encrypted for this project and only ever sent to that address. See security and privacy.

What the check looks for

Message What to do
“This WordPress site is …, not …” Enter the address of the site you crawled
“This account can change plugins, themes, users or settings. Create a separate user with the Editor role for NodeLens.” Make a separate Editor user
“This account can’t edit all published posts and pages (missing …). Give it the Editor role.” Change the user’s role to Editor
“A WordPress user name can’t contain a colon.” Check the user name
“The site’s https address with no path, like https://example.com.” Fix the address

You may see a note that the account “can’t save unfiltered HTML (normal on multisite)”. The connection still works. NodeLens then skips pages with embeds, scripts or iframes, because WordPress would strip them on save.

What NodeLens edits

NodeLens edits the content of posts and pages, as WordPress stores it, so block comments and classic-editor text stay as they were. Each fix adds one link around words already in the text, or changes a link that points at a dead page.

It doesn’t edit titles, excerpts, menus, widgets, theme templates or custom post types. A crawled URL that isn’t a post or page shows “Not found in WordPress (only posts and pages can be edited)” and stays out of the batch. The preview, count and undo are on how inserting works.

Revoke access

  1. In WordPress, open the NodeLens user’s Profile.
  2. Under Application Passwords, revoke “NodeLens”.

NodeLens stops writing to the site straight away. To remove the credential from NodeLens too, press Disconnect in Settings → Publishing, then confirm. Undo needs a working connection, so undo any links you want removed first.

Questions

Can I use my own administrator account?

No. NodeLens refuses any account that can change plugins, themes, users or settings. Make a separate Editor user.

Does NodeLens edit products or custom post types?

No. It edits the content of posts and pages only.

Was this page helpful? If something is missing or wrong, email [email protected] and tell us what you were trying to do.

Last updated