Skip to content

WordPress 凭据#

¥WordPress credentials

你可以使用以下凭据验证以下节点:

¥You can use these credentials to authenticate the following nodes:

先决条件#

¥Prerequisites

  • 创建 WordPress 账户或在服务器上部署 WordPress。

¥Create a WordPress account or deploy WordPress on a server.

支持的身份验证方法#

¥Supported authentication methods

  • 基本身份验证

¥Basic auth

相关资源#

¥Related resources

有关服务的更多信息,请参阅 WordPress API 文档

¥Refer to WordPress's API documentation for more information about the service.

使用基本身份验证#

¥Using basic auth

要配置此凭据,你需要:

¥To configure this credential, you'll need:

  • 你的 WordPress 用户名

¥Your WordPress Username

  • WordPress 应用密码

¥A WordPress application Password

  • 你的 WordPress URL

¥Your WordPress URL

  • 决定是否忽略 SSL 问题

¥Decide whether to Ignore SSL Issues

使用此凭据涉及三个步骤:

¥Using this credential involves three steps:

  1. 启用两步身份验证

¥Enable two-step authentication. 2. 创建应用密码

¥Create an application password. 3. 设置凭据

¥Set up the credential.

请参阅以下各步骤的详细说明。

¥Refer to the detailed instructions below for each step.

启用两步身份验证#

¥Enable two-step authentication

要生成应用密码,你必须先在 WordPress 中启用两步身份验证。如果你已经完成上述步骤,请输入 跳至下一节

¥To generate an application password, you must first enable Two-Step Authentication in WordPress. If you've already done this, skip to the next section.

  1. 打开 WordPress profile

¥Open your WordPress profile. 2. 从左侧菜单中选择“安全”。

¥Select Security from the left menu. 3. 选择“双重验证”。打开两步身份验证页面。

¥Select Two-Step Authentication. The Two-Step Authentication page opens. 4. 如果未启用双重身份验证,则必须启用它。

¥If Two-Step Authentication isn't enabled, you must enable it. 5. 选择是否使用身份验证器应用或短信验证码启用此功能,并按照屏幕上的说明进行操作。

¥Choose whether to enable it using an authenticator app or SMS codes and follow the on-screen instructions.

请参阅 WordPress 的 启用两步身份验证 获取详细说明。

¥Refer to WordPress's Enable Two-Step Authentication for detailed instructions.

创建应用密码#

¥Create an application password

启用双重身份验证后,你现在可以生成应用密码:

¥With Two-Step Authentication enabled, you can now generate an application password:

  1. 从“WordPress 安全”>“两步验证”页面,在“应用密码”部分选择“+ 添加新应用密码”。

¥From the WordPress Security > Two-Step Authentication page, select + Add new application password in the Application passwords section. 2. 输入应用名称,例如 n8n integration

¥Enter an Application name, like n8n integration. 3. 选择“生成密码”。

¥Select Generate Password. 4. 复制生成的密码。你将在 n8n 凭据中使用此凭据。

¥Copy the password it generates. You'll use this in your n8n credential.

设置凭据#

¥Set up the credential

恭喜!现在你可以设置 n8n 凭据了:

¥Congratulations! You're now ready to set up your n8n credential:

  1. 请在 n8n 凭据中输入你的 WordPress 用户名。

¥Enter your WordPress Username in your n8n credential. 2. 将你上面复制的应用密码输入为 n8n 凭据中的“密码”。

¥Enter the application password you copied above as the Password in your n8n credential. 3. 在 WordPress URL 栏中输入你的 WordPress 站点 URL。

¥Enter the URL of your WordPress site as the WordPress URL. 4. 可选的:使用“忽略 SSL 问题”节点,选择是否允许 n8n 凭据在 SSL 证书验证失败时连接(启用),或是否遵守 SSL 证书验证(禁用)。

¥Optional: Use the Ignore SSL Issues to choose whether you want the n8n credential to connect even if SSL certificate validation fails (turned on) or whether to respect SSL certificate validation (turned off).