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


PHP GFAddOn::init_ajax方法代碼示例

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


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

示例1: init_ajax

 protected function init_ajax()
 {
     parent::init_ajax();
     add_action('wp_ajax_gf_delete_signature', array($this, 'ajax_delete_signature'));
     //displays signature input
     add_action("gform_field_input", array($this, "signature_input"), 10, 5);
 }
開發者ID:macconsultinggroup,項目名稱:WordPress,代碼行數:7,代碼來源:signature.php

示例2: init_ajax

 public function init_ajax()
 {
     parent::init_ajax();
     add_action('wp_ajax_gf_delete_signature', array($this, 'ajax_delete_signature'));
     //displays signature input
     add_action('gform_field_input', array($this, 'signature_input'), 10, 5);
     add_filter('gform_merge_tag_filter', array($this, 'merge_tag_filter'), 10, 4);
 }
開發者ID:ajay786singh,項目名稱:viriditas-1,代碼行數:8,代碼來源:class-gf-signature.php

示例3: init_ajax

 public function init_ajax()
 {
     // merge tags
     add_filter('gform_merge_tag_filter', array($this, 'merge_tag_filter'), 10, 5);
     add_filter('gform_replace_merge_tags', array($this, 'replace_merge_tags'), 10, 7);
     if (rgpost('action') == 'rg_add_field') {
         add_filter('gform_field_type_title', array($this, 'assign_title'), 10, 2);
     }
     parent::init_ajax();
 }
開發者ID:qhuit,項目名稱:dcosta,代碼行數:10,代碼來源:class-gf-survey.php

示例4: init_ajax

 public function init_ajax()
 {
     parent::init_ajax();
     add_action('wp_ajax_gfwebapi_qrcode', array($this, 'ajax_qrcode'));
 }
開發者ID:tlandn,項目名稱:akvo-web,代碼行數:5,代碼來源:webapi.php

示例5: init_ajax

 /**
  * Initialize the AJAX hooks.
  */
 public function init_ajax()
 {
     add_action('wp_ajax_gpoll_ajax', array($this, 'gpoll_ajax'));
     add_action('wp_ajax_nopriv_gpoll_ajax', array($this, 'gpoll_ajax'));
     parent::init_ajax();
 }
開發者ID:GravityPDF,項目名稱:gravityformspolls,代碼行數:9,代碼來源:class-gf-polls.php

示例6: init_ajax

 protected function init_ajax()
 {
     add_action('wp_ajax_gpoll_ajax', array($this, 'gpoll_ajax'));
     add_action('wp_ajax_nopriv_gpoll_ajax', array($this, 'gpoll_ajax'));
     // merge tags for resending notifications
     add_filter('gform_merge_tag_filter', array($this, 'merge_tag_filter'), 10, 5);
     add_filter('gform_replace_merge_tags', array($this, 'render_merge_tag'), 10, 7);
     if (rgpost('action') == 'rg_add_field') {
         add_filter('gform_field_type_title', array($this, 'assign_title'), 10, 2);
     }
     parent::init_ajax();
 }
開發者ID:sdh100shaun,項目名稱:pantheon,代碼行數:12,代碼來源:polls.php

示例7: init_ajax

 public function init_ajax()
 {
     parent::init_ajax();
     // add tasks or filters here that you want to perform only during ajax requests
 }
開發者ID:jjozwiak,項目名稱:gravityforms-csv-schedule-export,代碼行數:5,代碼來源:scheduled-export.php

示例8: init_ajax

 /**
  * Initialize the AJAX hooks.
  */
 public function init_ajax()
 {
     parent::init_ajax();
     add_action('wp_ajax_gf_delete_signature', array($this, 'ajax_delete_signature'));
 }
開發者ID:wp-premium,項目名稱:gravityformssignature,代碼行數:8,代碼來源:class-gf-signature.php

示例9: init_ajax

 /**
  * Register functions to be called when DOING_AJAX
  * @return void
  */
 public function init_ajax()
 {
     parent::init_ajax();
     add_filter('gform_field_content', array($this, 'business_hours_field_admin'), 10, 5);
 }
開發者ID:hughc,項目名稱:Gravity-Forms-Business-Hours,代碼行數:9,代碼來源:gravity-forms-business-hours.php

示例10: init_ajax

 protected function init_ajax()
 {
     parent::init_ajax();
     add_action('wp_ajax_gpoll_ajax', array($this, 'gpoll_ajax'));
     add_action('wp_ajax_nopriv_gpoll_ajax', array($this, 'gpoll_ajax'));
 }
開發者ID:macconsultinggroup,項目名稱:WordPress,代碼行數:6,代碼來源:polls.php


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