octolize / wp-octolize-tracker
This package's canonical repository appears to be gone and the package has been frozen as a result.
1.8.0
2024-08-20 13:30 UTC
Requires
- php: >=7.4
- ext-json: *
- wpdesk/wp-logs: ^1.7
- wpdesk/wp-wpdesk-tracker: ^3.6.0
- wpdesk/wp-wpdesk-tracker-deactivation: ^2.0.0
Requires (Dev)
- 10up/wp_mock: *
- johnpbloch/wordpress: ^6.0
- mockery/mockery: *
- phpunit/phpunit: <7
- squizlabs/php_codesniffer: ^3.0.2
- wimg/php-compatibility: ^8
- wp-coding-standards/wpcs: ^0.14.1
This package is auto-updated.
Last update: 2024-09-20 13:44:36 UTC
README
Octolize Tracker
Requirements
PHP 7.0 or later.
Installation via Composer
In order to install the bindings via Composer run the following command:
composer require octolize/wp-octolize-tracker
Example usage
Initialize tracker in Octolize Plugin
$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
) );