Automattic\WooCommerce\Internal\Admin\Suggestions\Incentives

Incentive::__construct()publicWC 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 9.6.1

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