private function _init_widgets()
{
$build_widgets_filename = ['common', 'heading', 'image', 'text-editor', 'video', 'button', 'divider', 'spacer', 'image-box', 'google-maps', 'icon', 'icon-box', 'image-gallery', 'image-carousel', 'icon-list', 'counter', 'progress', 'testimonial', 'tabs', 'accordion', 'toggle', 'social-icons', 'alert', 'audio', 'shortcode', 'html', 'menu-anchor', 'sidebar'];
$this->_widget_types = [];
foreach ($build_widgets_filename as $widget_filename) {
include ELEMENTOR_PATH . 'includes/widgets/' . $widget_filename . '.php';
$class_name = str_replace('-', '_', $widget_filename);
$class_name = __NAMESPACE__ . '\\Widget_' . $class_name;
$this->register_widget_type(new $class_name());
}
$this->_register_wp_widgets();
do_action('elementor/widgets/widgets_registered');
}