本文整理匯總了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);
}
}