当前位置: 首页>>代码示例>>PHP>>正文


PHP Redux_Tracking::get_instance方法代码示例

本文整理汇总了PHP中Redux_Tracking::get_instance方法的典型用法代码示例。如果您正苦于以下问题:PHP Redux_Tracking::get_instance方法的具体用法?PHP Redux_Tracking::get_instance怎么用?PHP Redux_Tracking::get_instance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Redux_Tracking的用法示例。


在下文中一共展示了Redux_Tracking::get_instance方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _tracking

 public function _tracking()
 {
     include_once dirname(__FILE__) . '/inc/tracking.php';
     $tracking = Redux_Tracking::get_instance();
     $tracking->load($this);
 }
开发者ID:patlegris,项目名称:angularpresstheme,代码行数:6,代码来源:framework.php

示例2: _tracking

 private function _tracking()
 {
     require_once dirname(__FILE__) . '/inc/tracking.php';
     $tracking = Redux_Tracking::get_instance();
     $tracking->load($this);
 }
开发者ID:justinwool,项目名称:vortago,代码行数:6,代码来源:framework.php

示例3: mysql_get_server_info

             $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()
 {
开发者ID:dreadfra,项目名称:superba,代码行数:31,代码来源:tracking.php

示例4: _tracking

 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);
     }
 }
开发者ID:siiiiilvio,项目名称:kadcnc,代码行数:8,代码来源:framework.php


注:本文中的Redux_Tracking::get_instance方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。