add_actions(); } /** * Add Actions * * @since 1.0.0 * * @access private */ private function add_actions() { add_action( 'elementor/widgets/register', array( $this, 'on_widgets_registered' ) ); } /** * On Widgets Registered * * @since 1.0.0 * * @access public */ public function on_widgets_registered() { $this->includes(); $this->register_widget(); } /** * Includes * * @since 1.0.0 * * @access private */ private function includes() { require BOOKIT_INCLUDES_PATH . '/widgets/ElementorWidgetSettings.php'; } /** * Register Widget * * @since 1.0.0 * * @access private */ private function register_widget() { \Elementor\Plugin::instance()->widgets_manager->register( new ElementorWidgetSettings() ); } } new ElementorWidget();