| @@ -7,14 +7,11 @@ | ||
| 7 | 7 | * @since 5.0.06 |
| 8 | 8 | */ |
| 9 | 9 | class FrmElementorController { |
| 10 | 10 | |
| 11 | - /** | |
| 12 | - * @return void | |
| 13 | - */ | |
| 14 | 11 | public static function register_elementor_hooks() { |
| 15 | 12 | require_once FrmAppHelper::plugin_path() . '/classes/widgets/FrmElementorWidget.php'; |
| 16 | - \Elementor\Plugin::instance()->widgets_manager->register( new \FrmElementorWidget() ); | |
| 13 | + \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new \FrmElementorWidget() ); | |
| 17 | 14 | |
| 18 | 15 | if ( is_admin() ) { |
| 19 | 16 | add_action( |
| 20 | 17 | 'elementor/editor/after_enqueue_styles', |
| @@ -24,11 +21,8 @@ | ||
| 24 | 21 | ); |
| 25 | 22 | } |
| 26 | 23 | } |
| 27 | 24 | |
| 28 | - /** | |
| 29 | - * @return void | |
| 30 | - */ | |
| 31 | 25 | public static function admin_init() { |
| 32 | 26 | FrmAppController::load_wp_admin_style(); |
| 33 | 27 | FrmFormsController::insert_form_popup(); |
| 34 | 28 | } |