本文整理汇总了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'));
}
}
示例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'));
}
}
示例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);
}
}
示例4: pre_init
public function pre_init()
{
parent::pre_init();
//Check for updates
add_action('plugins_loaded', array($this, 'check_update'));
}
示例5: pre_init
public function pre_init()
{
parent::pre_init();
add_action("init", array($this, "prepopulate_frontend"), 10, 2);
}
示例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
}
示例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);
}
}