get_categories(); if ( ! empty( $categories[ self::HELLOPLUS_EDITOR_CATEGORY_SLUG ] ) ) { return; } $elements_manager->add_category( self::HELLOPLUS_EDITOR_CATEGORY_SLUG, [ 'title' => esc_html__( 'Hello+', 'hello-plus' ), 'icon' => 'fa fa-plug', ] ); } /** * @inheritDoc */ protected function register_hooks(): void { parent::register_hooks(); add_action( 'elementor/elements/categories_registered', [ $this, 'add_hello_plus_e_panel_categories' ] ); add_action( 'elementor/frontend/after_register_styles', [ $this, 'register_styles' ] ); } }