Fix settings page loading
This commit is contained in:
@@ -24,14 +24,14 @@ GFForms::include_addon_framework();
|
|||||||
|
|
||||||
final class Addon extends GFAddOn {
|
final class Addon extends GFAddOn {
|
||||||
use Singleton;
|
use Singleton;
|
||||||
|
|
||||||
protected $_min_gravityforms_version = '2.6.3.2';
|
protected $_min_gravityforms_version = '2.6.3.2';
|
||||||
|
|
||||||
public static function get_instance(): Addon {
|
public static function get_instance(): Addon {
|
||||||
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