Linux 软件免费装

PKL WPz REST API Authentication

开发者 kittlam
更新时间 2025年10月6日 16:33
PHP版本: 7.4 及以上
WordPress版本: 6.8
版权: GPLv2 or later
版权网址: 版权信息

标签

security authentication rest-api api-key

下载

1.0.0 1.1.0

详情介绍:

PKL WPz REST API Authentication provides a simple way to authenticate WordPress REST API requests using API keys. Users can generate their own API keys from their profile page and use them to make authenticated API requests. Features:

安装:

  1. Upload the plugin files to the /wp-content/plugins/pkl-wpz-rest-api-auth directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Users can generate API keys from their profile page (Users > Your Profile).
  4. Use the generated API key in the Authorization header: Authorization: Bearer YOUR_API_KEY

常见问题:

How do I generate an API key?

  1. Go to Users > Your Profile in WordPress admin
  2. Scroll down to the "REST API Access" section
  3. Click "Generate New API Key"
  4. Copy and save your API key securely

How do I use the API key?

You can use the API key in multiple ways:

  • Authorization Bearer Token (Recommended): Authorization: Bearer YOUR_API_KEY
  • X-API-Key Header: X-API-Key: YOUR_API_KEY
  • Form-data: Include api_key parameter
  • Query Parameter: ?api_key=YOUR_API_KEY

Can I revoke an API key?

Yes, you can revoke your API key from your profile page by clicking the "Revoke API Key" button.

Is it secure?

Yes, the plugin follows WordPress security best practices and stores API keys securely in the database.

更新日志:

1.1.0 Change database table schema _id -> UUID() 1.0.0 Plugin Launch