You appear to be a bot. Output may be restricted
Description
Setup the data that is going to be tracked
Usage
$void = EDD_Tracking::setup_data();
Parameters
Returns
void
Source
File name: easy-digital-downloads/includes/admin/tracking.php
Lines:
1 to 45 of 45
private function setup_data() { $data = array(); // Retrieve current theme info $theme_data = wp_get_theme(); $theme = $theme_data->Name . ' ' . $theme_data->Version; $data['php_version'] = phpversion(); $data['edd_version'] = EDD_VERSION; $data['wp_version'] = get_bloginfo( 'version' ); $data['server'] = isset( $_SERVER['SERVER_SOFTWARE'] ) ? $_SERVER['SERVER_SOFTWARE'] : ''; $checkout_page = edd_get_option( 'purchase_page', false ); $data['install_date'] = false !== $checkout_page ? get_post_field( 'post_date', $checkout_page ) : 'not set'; $data['multisite'] = is_multisite(); $data['url'] = home_url(); $data['theme'] = $theme; $data['email'] = get_bloginfo( 'admin_email' ); // Retrieve current plugin information if( ! function_exists( 'get_plugins' ) ) { include ABSPATH . '/wp-admin/includes/plugin.php'; } $plugins = array_keys( get_plugins() ); $active_plugins = get_option( 'active_plugins', array() ); foreach ( $plugins as $key => $plugin ) { if ( in_array( $plugin, $active_plugins ) ) { // Remove active plugins from list so we can show active and inactive separately unset( $plugins[ $key ] ); } } $data['active_plugins'] = $active_plugins; $data['inactive_plugins'] = $plugins; $data['active_gateways'] = array_keys( edd_get_enabled_payment_gateways() ); $data['products'] = wp_count_posts( 'download' )->publish; $data['download_label'] = edd_get_label_singular( true ); $data['locale'] = get_locale(); $this->data = $data; }