automattic / jetpack-abtest
Provides an interface to the WP.com A/B tests.
Installs: 23 504
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 4
Forks: 1
Type:jetpack-library
Requires
- php: >=7.0
- automattic/jetpack-connection: ^2.11.0
- automattic/jetpack-error: ^2.0.2
Requires (Dev)
- automattic/jetpack-changelogger: ^4.2.5
- automattic/wordbless: dev-master
- yoast/phpunit-polyfills: 1.1.0
Suggests
- automattic/jetpack-autoloader: Allow for better interoperability with other plugins that use this package.
- dev-trunk / 2.1.x-dev
- v2.1.0
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.10.14
- v1.10.13
- v1.10.12
- v1.10.11
- v1.10.10
- v1.10.9
- v1.10.8
- v1.10.7
- v1.10.6
- v1.10.5
- v1.10.4
- v1.10.3
- v1.10.2
- v1.10.1
- v1.10.0
- v1.9.23
- v1.9.22
- v1.9.21
- v1.9.20
- v1.9.19
- v1.9.18
- v1.9.17
- v1.9.16
- v1.9.15
- v1.9.14
- v1.9.13
- v1.9.12
- v1.9.11
- v1.9.10
- v1.9.9
- v1.9.8
- v1.9.7
- v1.9.6
- 1.9.5
- v1.9.4
- v1.9.3
- v1.9.2
- v1.9.1
- v1.9.0
- v1.8.4
- v1.8.3
- v1.8.2
- v1.8.1
- v1.8.0
- v1.7.4
- v1.7.3
- v1.7.2
- v1.7.1
- v1.7.0
- v1.6.1
- v1.6.0
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.0
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-prerelease
- dev-fix/slack-workflow-branch-detection
- dev-fix/release-branch-typo
- dev-update/generate-branch-plugin
- dev-release-v1.9.4
- dev-release-v1.9.3
- dev-release-v1.9.2
- dev-release-v1.9.1
- dev-feature/reorg
- dev-release-v1.9.0
- dev-release-v1.8.4
- dev-release-v1.8.3
- dev-release-v1.8.2
- dev-release-v1.8.1
- dev-release-v1.8.0
- dev-release-v1.7.4
- dev-release-v1.7.3
- dev-release-v1.7.2
- dev-release-v1.7.1
- dev-release-v1.7.0
- dev-release-v1.6.1
- dev-release-v1.6.0
- dev-release-v1.5.2
- dev-release-v1.5.1
- dev-release-v1.5.0
- dev-release-v1.4.2
- dev-release-v1.4.1
- dev-release-v1.4.0
- dev-release-v1.3.1
- dev-release-v1.3.0
- dev-release-v1.2.0
- dev-release-v1.1.0
This package is auto-updated.
Last update: 2024-12-04 22:39:47 UTC
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)