MarketingCampaignType::__construct()publicWC 1.0

MarketingCampaignType constructor.

Method of the class: MarketingCampaignType{}

No Hooks.


null. Nothing (null).


$MarketingCampaignType = new MarketingCampaignType();
$MarketingCampaignType->__construct( $id, $channel, $name, $description, $create_url, $icon_url );
$id(string) (required)
A unique identifier for the campaign type.
$channel(MarketingChannelInterface) (required)
The marketing channel that this campaign type belongs to.
$name(string) (required)
Name of the marketing campaign type.
$description(string) (required)
Description of the marketing campaign type.
$create_url(string) (required)
The URL to the create campaign page.
$icon_url(string) (required)
The URL to an image/icon for the campaign type.

MarketingCampaignType::__construct() code WC 9.0.1

public function __construct( string $id, MarketingChannelInterface $channel, string $name, string $description, string $create_url, string $icon_url ) {
	$this->id          = $id;
	$this->channel     = $channel;
	$this->name        = $name;
	$this->description = $description;
	$this->create_url  = $create_url;
	$this->icon_url    = $icon_url;