當前位置: 首頁>>代碼示例>>PHP>>正文


PHP GFAddOn::pre_init方法代碼示例

本文整理匯總了PHP中GFAddOn::pre_init方法的典型用法代碼示例。如果您正苦於以下問題:PHP GFAddOn::pre_init方法的具體用法?PHP GFAddOn::pre_init怎麽用?PHP GFAddOn::pre_init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在GFAddOn的用法示例。


在下文中一共展示了GFAddOn::pre_init方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: pre_init

 /**
  * Handles anything which requires early initialization.
  */
 public function pre_init()
 {
     parent::pre_init();
     if ($this->is_gravityforms_supported() && class_exists('GF_Field')) {
         require_once 'includes/class-gf-field-signature.php';
         add_action('parse_request', array($this, 'display_signature'));
     }
 }
開發者ID:wp-premium,項目名稱:gravityformssignature,代碼行數:11,代碼來源:class-gf-signature.php

示例2: pre_init

 /**
  * Handles anything which requires early initialization.
  */
 public function pre_init()
 {
     parent::pre_init();
     if ($this->is_gravityforms_supported() && class_exists('GF_Field')) {
         require_once 'includes/class-gf-field-poll.php';
         add_action('gform_after_submission', array($this, 'after_submission'), 10, 2);
         add_filter('gform_export_field_value', array($this, 'display_entries_field_value'), 10, 4);
         add_action('gform_polls_cron', array($this, 'wp_cron_task'));
     }
 }
開發者ID:GravityPDF,項目名稱:gravityformspolls,代碼行數:13,代碼來源:class-gf-polls.php

示例3: pre_init

 /**
  * Handles anything which requires early initialization.
  */
 public function pre_init()
 {
     parent::pre_init();
     if ($this->is_gravityforms_supported() && class_exists('GF_Field')) {
         require_once 'includes/class-gf-field-survey.php';
         require_once 'includes/class-gf-field-likert.php';
         require_once 'includes/class-gf-field-rank.php';
         require_once 'includes/class-gf-field-rating.php';
         add_filter('gform_export_field_value', array($this, 'export_field_value'), 10, 4);
     }
 }
開發者ID:GravityPDF,項目名稱:gravityformssurvey,代碼行數:14,代碼來源:class-gf-survey.php

示例4: pre_init

 public function pre_init()
 {
     parent::pre_init();
     //Check for updates
     add_action('plugins_loaded', array($this, 'check_update'));
 }
開發者ID:BAY-A,項目名稱:Gravity-Forms-DigitalOcean,代碼行數:6,代碼來源:gravityforms-digitalocean.php

示例5: pre_init

 public function pre_init()
 {
     parent::pre_init();
     add_action("init", array($this, "prepopulate_frontend"), 10, 2);
 }
開發者ID:asithade,項目名稱:gravity-forms-prepopulate,代碼行數:5,代碼來源:prepopulate.php

示例6: pre_init

 public function pre_init()
 {
     parent::pre_init();
     // add tasks or filters here that you want to perform during the class constructor - before WordPress has been completely initialized
 }
開發者ID:jjozwiak,項目名稱:gravityforms-csv-schedule-export,代碼行數:5,代碼來源:scheduled-export.php

示例7: pre_init

 /**
  * Handles anything which requires early initialization.
  */
 public function pre_init()
 {
     parent::pre_init();
     if ($this->is_gravityforms_supported() && class_exists('GF_Field')) {
         require_once 'includes/class-gf-field-quiz.php';
         add_filter('gform_export_field_value', array($this, 'display_export_field_value'), 10, 4);
     }
 }
開發者ID:GravityPDF,項目名稱:gravityformsquiz,代碼行數:11,代碼來源:class-gf-quiz.php


注:本文中的GFAddOn::pre_init方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。