alh-software / endpoint-plugin
此软件包的最新版本(dev-master)没有提供许可证信息。
当访问者导航到其端点时,该插件必须向REST API端点发送HTTP请求的自定义WP插件。
dev-master
2020-03-14 16:04 UTC
Requires
- php: ^7.2
Requires (Dev)
- brain/monkey: ^2.4
- phpunit/phpunit: ^9.0
This package is not auto-updated.
Last update: 2024-09-23 09:35:25 UTC
README
简单的任务管理系统
关于
描述:当访问者导航到其端点时,该插件必须向REST API端点发送HTTP请求的自定义WP插件。
安装
编辑你的 `
composer.json 文件,并将以下行添加到
"require": {...}部分
"alh-software/endpoint-plugin": "1.0.0"
然后运行
composer install
或者,你可以直接运行以下命令,因为我们的插件可以通过 "Packagist" PHP包仓库获得
composer require alh-software/endpoint-plugin
插件应安装在 `
wp-content/plugins/`
目录中。
激活
转到 WP 管理仪表板 > 插件,然后在新的插件下点击 `
激活`
链接。
运行请求
要运行插件功能,你应该调用以下URL
example.com?myusers=yes
其中 `
example.com`
是安装了插件的你的WP网站。
运行测试
你可以使用以下命令运行项目测试
cd DIR/wp-content/plugins/alh-endpoint
其中 `
DIR`
是你的WP网站目录。
然后运行
vendor/bin/phpunit