Automattic\WooCommerce\Internal\Admin\Suggestions\Incentives

Incentive::__construct │ public │ WC 1.0

Constructor.

Метод класса: Incentive{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Incentive = new Incentive();
$Incentive->__construct( $suggestion_id );
$suggestion_id(строка) (обязательный)
The suggestion ID this incentive provider is for.

Код Incentive::__construct() WC 11.2.2

public function __construct( string $suggestion_id ) {
	$this->suggestion_id = $suggestion_id;
}