baxtian/wp_json
最新稳定版本:0.1.1
Composer 安装命令:
composer require baxtian/wp_json
包简介
Base class for merak REST API endpoints.
README 文档
README
Class to be inherited to create a WP REST API endpoint.
Extend WP_Json and implement the api() method to register routes via register_rest_route().
Use self::success($data) and self::error($message) for standard responses.
Use sanitize_boolean(), sanitize_float() and sanitize_array() as sanitize_callback in route args.
Mantainers
Juan Sebastián Echeverry baxtian.echeverry@gmail.com
Changelog
0.1.1
- Fix: Force cast to float in sanitize float to guarantee the return type
0.1.0
- First stable release
统计信息
- 总下载量: 22
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2026-04-07