WooCommerce\Admin

Experimental_Abtest::__construct()publicWC 1.0

Constructor.

Method of the class: Experimental_Abtest{}

No Hooks.

Return

null. Nothing (null).

Usage

$Experimental_Abtest = new Experimental_Abtest();
$Experimental_Abtest->__construct( $anon_id, $platform, $consent, $as_auth_wpcom_user );
$anon_id(string) (required)
ExPlat anonymous ID.
$platform(string) (required)
ExPlat platform name.
$consent(true|false) (required)
Whether tracking consent is given.
$as_auth_wpcom_user(true|false)
Request variation as a auth wp user or not.
Default: false

Experimental_Abtest::__construct() code WC 8.9.0

public function __construct( string $anon_id, string $platform, bool $consent, bool $as_auth_wpcom_user = false ) {
	$this->anon_id            = $anon_id;
	$this->platform           = $platform;
	$this->consent            = $consent;
	$this->as_auth_wpcom_user = $as_auth_wpcom_user;
}