Automattic\WooCommerce\Admin\Marketing

MarketingChannelInterface::get_campaigns()publicWC 1.0

Returns an array of the channel's marketing campaigns.

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

Хуков нет.

Возвращает

MarketingCampaign[].

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

$MarketingChannelInterface = new MarketingChannelInterface();
$MarketingChannelInterface->get_campaigns(): array;

Код MarketingChannelInterface::get_campaigns() WC 8.9.3

public function get_campaigns(): array;