Fix settings page loading
This commit is contained in:
@@ -31,7 +31,7 @@ final class Addon extends GFAddOn {
|
|||||||
return self::instance();
|
return self::instance();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function pre_init() {
|
function __construct() {
|
||||||
$this->_version = Plugin::get_version();
|
$this->_version = Plugin::get_version();
|
||||||
$this->_slug = Plugin::get_id();
|
$this->_slug = Plugin::get_id();
|
||||||
$this->_path = sprintf(
|
$this->_path = sprintf(
|
||||||
@@ -44,11 +44,15 @@ final class Addon extends GFAddOn {
|
|||||||
Plugin::get_title()
|
Plugin::get_title()
|
||||||
);
|
);
|
||||||
$this->_short_title = Plugin::get_title();
|
$this->_short_title = Plugin::get_title();
|
||||||
|
|
||||||
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function init() {
|
public function init() {
|
||||||
add_filter('gform_submit_button', [$this, 'submit_button'], 10, 2);
|
add_filter('gform_submit_button', [$this, 'submit_button'], 10, 2);
|
||||||
add_filter('gform_validation', [$this, 'validation'], 10, 2);
|
add_filter('gform_validation', [$this, 'validation'], 10, 2);
|
||||||
|
|
||||||
|
parent::init();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function get_menu_icon() {
|
public function get_menu_icon() {
|
||||||
|
|||||||
Reference in New Issue
Block a user