automattic/jetpack-abtest
最新稳定版本:v2.1.0
Composer 安装命令:
composer require automattic/jetpack-abtest
包简介
Provides an interface to the WP.com A/B tests.
README 文档
README
IMPORTANT NOTICE:
This package is no longer maintained and currently broken. We do not recommend using it in any new projects.
Provides an interface to the WP.com A/B tests.
Used to retrieve the variation of a valid, active A/B test running on WP.com for the current user.
Usage
Retrieve the A/B test variation of the current user for the example_abtest_name A/B test:
use Automattic\Jetpack\Abtest; $abtest = new Abtest(); $variation = $abtest->get_variation( 'example_abtest_name' );
Will return null if the A/B test is invalid or is currently inactive.
Using this package in your WordPress plugin
If you plan on using this package in your WordPress plugin, we would recommend that you use Jetpack Autoloader as your autoloader. This will allow for maximum interoperability with other plugins that use this package as well.
Security
Need to report a security vulnerability? Go to https://automattic.com/security/ or directly to our security bug bounty site https://hackerone.com/automattic.
License
jetpack-abtest is licensed under GNU General Public License v2 (or later)
统计信息
- 总下载量: 24.77k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2019-09-14