Skip to content

Commit

Permalink
Tweak: hello+ editor category [TMZ-215] (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuritsha authored Dec 11, 2024
1 parent 57dc7fe commit fbe31e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/theme/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ protected function get_component_ids(): array {
* @return void
*/
public function add_hello_plus_e_panel_categories( \Elementor\Elements_Manager $elements_manager ) {
$categories = $elements_manager->get_categories();
if ( ! empty( $categories[ self::HELLOPLUS_EDITOR_CATEGORY_SLUG ] ) ) {
return;
}

$elements_manager->add_category(
self::HELLOPLUS_EDITOR_CATEGORY_SLUG,
[
Expand Down

0 comments on commit fbe31e4

Please sign in to comment.