Automattic\WooCommerce\Admin\Marketing
MarketingCampaignType::__construct()
MarketingCampaignType constructor.
Method of the class: MarketingCampaignType{}
No Hooks.
Return
null
. Nothing (null).
Usage
$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() MarketingCampaignType:: construct code WC 9.8.2
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; }