public function _tracking() { include_once dirname(__FILE__) . '/inc/tracking.php'; $tracking = Redux_Tracking::get_instance(); $tracking->load($this); }
private function _tracking() { require_once dirname(__FILE__) . '/inc/tracking.php'; $tracking = Redux_Tracking::get_instance(); $tracking->load($this); }
$software['full'] = $_SERVER['SERVER_SOFTWARE']; $data['environment'] = $software; if (function_exists('mysql_get_server_info')) { $data['environment']['mysql'] = mysql_get_server_info(); } if (empty($data['developer'])) { unset($data['developer']); } $args = array('body' => $data); $response = wp_remote_post('https://redux-tracking.herokuapp.com', $args); // Store for a week, then push data again. set_transient('redux_tracking_cache', true, 7 * 60 * 60 * 24); } } } Redux_Tracking::get_instance(); /** * Adds tracking parameters for Redux settings. Outside of the main class as the class could also be in use in other ways. * * @param array $options * @return array */ function redux_tracking_additions($options) { $opt = array(); $options['redux'] = array('demo_mode' => get_option('ReduxFrameworkPlugin')); return $options; } add_filter('redux/tracking/options', 'redux_tracking_additions'); function redux_allow_tracking_callback() {
private function _tracking() { if (file_exists(get_template_directory() . '/framework/theme-panel/ReduxCore/inc/tracking.php')) { require_once get_template_directory() . '/framework/theme-panel/ReduxCore/inc/tracking.php'; $tracking = Redux_Tracking::get_instance(); $tracking->load($this); } }