Skip to content
/ bawp Public

A WordPress plugin to provide API endpoints for retrieving WordPress and plugin information.

License

Notifications You must be signed in to change notification settings

enderkus/bawp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BAWP

BAWP is a WordPress plugin that provides information about your installed plugins and WordPress version in JSON format via a REST API.

Support

Buy me a coffee

Features

  • Provides the WordPress version and update status.
  • Lists installed plugins and their update statuses.
  • Secure data access using an API key.
  • View and manage the API key from the admin panel.

Installation

  1. Download the plugin files from GitHub or extract the zip file.
  2. Upload the bawp directory to the wp-content/plugins directory of your WordPress installation.
  3. Activate the "BAWP" plugin from the "Plugins" section in the WordPress admin panel.

Usage

API Endpoint

Access the API using the following endpoint:

GET https://yourdomain.com/wp-json/bawp/v1/info?api_key=YOUR_API_KEY

Parameters

  • api_key: The API key generated by the plugin and viewable in the admin panel.

Example Request

sh curl -X GET "https://yourdomain.com/wp-json/bawp/v1/info?api_key=YOUR_API_KEY"

Example JSON Response

{
    "wp_version": "5.7.2",
    "wp_update_available": false,
    "plugins": [
        {
            "name": "Akismet Anti-Spam",
            "version": "4.1.9",
            "author": "Automattic",
            "update_available": true
        },
        {
            "name": "Hello Dolly",
            "version": "1.7.2",
            "author": "Matt Mullenweg",
            "update_available": false,
            "acitve": true
        }
    ]
}

API Key Management

When the plugin is first installed, an API key is automatically generated. To view or change this key:

1. Go to the WordPress admin panel.
2. Navigate to the "Settings" section and select "BAWP".
3. You can view the current API key or generate a new one from this page.

Security

To ensure the security of your API key, do not share it with anyone and only allow access to trusted clients.

Contributing

If you would like to contribute, you can do so by sending a pull request or opening an issue on the GitHub repository. We appreciate all contributions and feedback!

License

This project is licensed under the MIT License. You can refer to the LICENSE file for details.

User Responsibility

Users utilize the plugin at their own discretion. The plugin developer cannot be held responsible for any issues that may arise.

About

A WordPress plugin to provide API endpoints for retrieving WordPress and plugin information.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages