WordPress at Your Fingertips
function is not described

WooCommerce\Admin

Experimental_Abtest::__construct() public WC 1.0

Constructor.

{} It's a method of the class: Experimental_Abtest{}

No Hooks.

Return

null. Nothing.

Usage

$Experimental_Abtest = new Experimental_Abtest();
$Experimental_Abtest->__construct( $anon_id, $platform, $consent );
$anon_id(string) (required)
ExPlat anonymous ID.
$platform(string) (required)
ExPlat platform name.
$consent(true|false) (required)
Whether tracking consent is given.

Code of Experimental_Abtest::__construct() WC 6.1.1

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