當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。