include_widgets_files(); // Register Widgets \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\MC_Button_Fixed() ); //\Elementor\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\Inline_Editing() ); } /** * Plugin class constructor * * Register plugin action hooks and filters * * @since 1.2.0 * @access public */ public function __construct() { // Register widget scripts add_action( 'elementor/frontend/after_register_scripts', [ $this, 'widget_scripts' ] ); add_action( 'elementor/frontend/after_enqueue_styles', [ $this, 'widget_styles' ] ); // Register widgets add_action( 'elementor/widgets/widgets_registered', [ $this, 'register_widgets' ] ); } } // Instantiate Plugin Class Plugin::instance();