WordPress plugin that logs REST API requests and responses.
- Main branch:
develop(use for PRs)
wp-rest-api-log.php— plugin entry point, bootstraps all classesincludes/— core classes (DB, controller, request/response models, filters, settings)admin/— admin UI classes and partialstests/— PHPUnit tests
Tests require a WordPress develop checkout and a MySQL database.
# Set the path to your wordpress-develop clone
export WP_DEVELOP_DIR="/path/to/wordpress-develop"
# Install dependencies
composer install
# Run tests
./vendor/bin/phpunitThe test database (wordpress_test) must exist before running tests.
Uses WordPress Coding Standards (WPCS) via wp-coding-standards/wpcs.
./vendor/bin/phpcs --standard=WordPress .CI is being migrated from Travis CI (.travis.yml) to GitHub Actions (.github/workflows/).