octolize/wp-octolize-tracker

1.8.0 2024-08-20 13:30 UTC

README

pipeline status coverage report Latest Stable Version Total Downloads License

Octolize Tracker

需求

PHP 7.0 或更高版本。

通过 Composer 安装

为了通过 Composer 安装绑定,请运行以下命令

composer require octolize/wp-octolize-tracker

示例用法

在 Octolize 插件中初始化追踪器

$shops = $this->plugin_info->get_plugin_shops();
$shop_url = $shops[get_locale()] ?? ( $shops['default'] ?? 'https://octolize.com' );
$this->add_hookable( new TrackerInitializer(
	$this->plugin_info->get_plugin_file_name(),
	$this->plugin_info->get_plugin_slug(),
	$this->plugin_info->get_plugin_name(),
	$shop_url
) );

作者

Octolize