WooCommerce Code Reference

MarketingCampaignType
in package

MarketingCampaignType class

Tags
since

x.x.x

Table of Contents

$channel  : MarketingChannelInterface
The marketing channel that this campaign type belongs to.
$create_url  : string
The URL to the create campaign page.
$description  : string
Description of the marketing campaign type.
$icon_url  : string
The URL to an image/icon for the campaign type.
$id  : string
The unique identifier.
$name  : string
Name of the marketing campaign type.
__construct()  : mixed
MarketingCampaignType constructor.
get_channel()  : MarketingChannelInterface
Returns the marketing channel that this campaign type belongs to.
get_create_url()  : string
Returns the URL to the create campaign page.
get_description()  : string
Returns the description of the marketing campaign type.
get_icon_url()  : string
Returns the URL to an image/icon for the campaign type.
get_id()  : string
Returns the marketing campaign's unique identifier.
get_name()  : string
Returns the name of the marketing campaign type.

Properties

Methods

__construct()

MarketingCampaignType constructor.

public __construct(string $id, MarketingChannelInterface $channel, string $name, string $description, string $create_url, string $icon_url) : mixed
Parameters
$id : string

A unique identifier for the campaign type.

$channel : MarketingChannelInterface

The marketing channel that this campaign type belongs to.

$name : string

Name of the marketing campaign type.

$description : string

Description of the marketing campaign type.

$create_url : string

The URL to the create campaign page.

$icon_url : string

The URL to an image/icon for the campaign type.

Return values
mixed