elementor custom weight

function.php

function register_oembed_widget( $widgets_manager ) {

include( get_stylesheet_directory().'/widgets/oembed-widget.php' );
include( get_stylesheet_directory().'/widgets/custom-list.php' );
include( get_stylesheet_directory().'/widgets/custom-slider.php' );

$widgets_manager->register( new \Elementor_oEmbed_Widget() );
$widgets_manager->register( new \Elementor_custom_list() );
$widgets_manager->register( new \Elementor_custom_slider() );
}
add_action( 'elementor/widgets/register', 'register_oembed_widget' );



function add_elementor_widget_categories( $elements_manager ) {
$elements_manager->add_category(
'first-category',
[
'title' => esc_html__( 'Create Category', 'elementor-oembed-widget' ),
'icon' => 'fa fa-plug',
]
);
}
add_action( 'elementor/elements/categories_registered', 'add_elementor_widget_categories' );