| @@ -57,9 +57,9 @@ | ||
| 57 | 57 | * @since 1.1.0 |
| 58 | 58 | * Sellkit_Elementor_Base_Module constructor. |
| 59 | 59 | */ |
| 60 | 60 | public function __construct() { |
| 61 | - add_action( 'elementor/widgets/widgets_registered', [ $this, 'register_widgets' ] ); | |
| 61 | + add_action( 'elementor/widgets/register', [ $this, 'register_widgets' ] ); | |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | 65 | * Register widgets. |
| @@ -81,9 +81,9 @@ | ||
| 81 | 81 | sellkit()->load_files( [ $class_path ] ); |
| 82 | 82 | |
| 83 | 83 | // Register. |
| 84 | 84 | if ( $class_name::is_active() ) { |
| 85 | - $widgets_manager->register_widget_type( new $class_name() ); | |
| 85 | + $widgets_manager->register( new $class_name() ); | |
| 86 | 86 | } |
| 87 | 87 | } |
| 88 | 88 | } |
| 89 | 89 | |