HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/globfdxw/www/wp-content/plugins/ubermenu/includes/elementor/elementor.php
<?php

define( 'UM_MINIMUM_ELEMENTOR_VERSION' , '3.5.0' );
define( 'UM_MINIMUM_ELEMENTOR_PHP_VERSION' , '7.0' );


add_action( 'plugins_loaded', 'ubermenu_elementor_init' );

function ubermenu_elementor_init(){

  	// Check if Elementor installed and activated
	if ( ! did_action( 'elementor/loaded' ) ) {
		//add_action( 'admin_notices', [ $this, 'admin_notice_missing_main_plugin' ] );
		return;
	}

  	// Check for required Elementor version
	if ( ! version_compare( ELEMENTOR_VERSION, UM_MINIMUM_ELEMENTOR_VERSION, '>=' ) ) {
		//add_action( 'admin_notices', [ $this, 'admin_notice_minimum_elementor_version' ] );
		return;
	}

  	// Check for required PHP version
	if ( version_compare( PHP_VERSION, UM_MINIMUM_ELEMENTOR_PHP_VERSION, '<' ) ) {
		//add_action( 'admin_notices', [ $this, 'admin_notice_minimum_php_version' ] );
		return;
	}

  	add_action( 'elementor/widgets/register', 'ubermenu_elementor_init_widgets' );
	//add_action( 'elementor/controls/controls_registered', 'init_controls' );


}

function ubermenu_elementor_init_widgets() {
  // Include Widget files
	require_once( __DIR__ . '/widgets/nav-widget.php' );

	// Register widget
	\Elementor\Plugin::instance()->widgets_manager->register( new \Elementor_UberMenu_Nav_Widget() );
}








//https://developers.elementor.com/creating-an-extension-for-elementor/