enabled = apply_filters( 'aioseo_usage_tracking_enable', true ); } /** * Get the type for the request. * * @since 4.0.0 * * @return string The install type. */ public function getType() { return 'pro'; } /** * Retrieves the data to send in the usage tracking. * * @since 4.0.0 * * @return array An array of data to send. */ protected function getData() { $data = parent::getData(); $data['aioseo_license_key'] = aioseo()->sensitiveOptions->get( 'licenseKey' ); $data['aioseo_license_type'] = aioseo()->internalOptions->internal->license->level; $data['aioseo_is_pro'] = true; // Get usage tracking data from the addons. $data['addon_data'] = aioseo()->addons->doAddonFunction( 'usage', 'getData' ); return $data; } }