本文整理匯總了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);
}
示例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);
}
示例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();
}
示例4: init_ajax
public function init_ajax()
{
parent::init_ajax();
add_action('wp_ajax_gfwebapi_qrcode', array($this, 'ajax_qrcode'));
}
示例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();
}
示例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();
}
示例7: init_ajax
public function init_ajax()
{
parent::init_ajax();
// add tasks or filters here that you want to perform only during ajax requests
}
示例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'));
}
示例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);
}
示例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'));
}