芝麻web文件管理V1.00
编辑当前文件:/home/ezdajrnh/test.ezed.pk/wp-content/plugins/rife-elementor-extensions/includes/plugin.php
admin = new Admin(); $this->importer = new Importer(); } // Check for required Elementor version if ( defined('ELEMENTOR_VERSION') && ! version_compare( ELEMENTOR_VERSION, self::MINIMUM_ELEMENTOR_VERSION, '>=' ) ) { add_action( 'admin_notices', [ $this, 'admin_notice_minimum_elementor_version' ] ); return; } else{ $this->widgets = new Widgets(); } /** * Plugin init. * * Fires on Plugin init, after Plugin has finished loading but * before any headers are sent. * * @since 1.0.0 */ do_action( 'a13ree/init' ); } public function admin_notice_minimum_elementor_version() { echo '
'. wpautop( sprintf( /* translators: %s: Required Elementor version */ esc_html__( 'Rife Extensions & Templates for Elementor plugin requires Elementor version %s or greater.', 'rife-elementor-extensions' ), self::MINIMUM_ELEMENTOR_VERSION ) ).'
'; } /** * Register autoloader. * * Autoloader loads all the classes needed to run the plugin. * * @since 1.0.0 * @access private */ private function register_autoloader() { /** @noinspection PhpIncludeInspection */ require A13REE_PATH . '/includes/autoloader.php'; Autoloader::run(); } /** * Plugin constructor. * * Initializing Plugin. * * @since 1.0.0 * @access private */ private function __construct() { $this->register_autoloader(); add_action( 'init', [ $this, 'init' ], 0 ); } } Plugin::instance();