# easy-elements/trunk/easy-elements.php

Easy Elements for Elementor – Addons &amp; Website Templates, version trunk. 62 lines.

- Page: https://pluginprobe.com/plugins/easy-elements/trunk/code/easy-elements.php
- Raw: https://pluginprobe.com/plugins/easy-elements/trunk/raw/easy-elements.php
- Modified: 2026-08-13T10:39:00+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/easy-elements/trunk/code/easy-elements.php#L10-L20`.

```php
<?php
/**
 * Plugin Name: Easy Elements
 * Plugin URI:  https://wpeasyelements.com/
 * Description: Provides a set of custom Elementor widgets, shortcodes, and enhancements.
 * Version:     1.5.4
 * Author:      Themewant
 * Author URI:  https://wpeasyelements.com/
 * Text Domain: easy-elements
 * Domain Path: /languages
 * License:     GPLv2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// Prevent loading the plugin twice.
if ( defined( 'EASYELEMENTS_VER' ) ) {
	return;
}

define( 'EASY_ELEMENTS_DEV', false );
if ( defined( 'EASY_ELEMENTS_DEV' ) && true == EASY_ELEMENTS_DEV ) {
	define('EASYELEMENTS_VER', '1.5.4' . time() );
} else {
	define( 'EASYELEMENTS_VER', '1.5.4' );
}

// Define constants
define( 'EASYELEMENTS_FILE', __FILE__ );
define( 'EASYELEMENTS_DIR_PATH', plugin_dir_path( __FILE__ ) );
define( 'EASYELEMENTS_DIR_URL', plugin_dir_url( __FILE__ ) );
define( 'EASYELEMENTS_ASSETS_URL', EASYELEMENTS_DIR_URL . 'assets/' );
define( 'EASYELEMENTS_URL', plugins_url( '/', __FILE__ ) );
define( 'EASYELEMENTS_PATH', plugin_basename( EASYELEMENTS_FILE ) );
define( 'EASYELEMENTS_DOMAIN', trailingslashit( 'https://wpeasyelements.com/' ) );
define( 'EASYELEMENTS_URL_ADMIN', plugin_dir_url( __FILE__ ) );
define( 'EASYELEMENTS_ASSETS_ADMIN', trailingslashit( EASYELEMENTS_URL_ADMIN ) );

/*
 * Marks the free "EasyElements for Elementor" build. Several feature checks read
 * `... || EASYELEMENTS_FOR_ELEMENTOR` and relied on it always being truthy. While the
 * Pro add-on is active the left-hand side short-circuits, which hid the fact that this
 * constant was never actually defined; with Pro deactivated PHP 8 evaluates it and
 * throws a fatal "Undefined constant" error. Define it explicitly so those checks
 * behave exactly as before, whether or not Pro is active.
 */
if ( ! defined( 'EASYELEMENTS_FOR_ELEMENTOR' ) ) {
	define( 'EASYELEMENTS_FOR_ELEMENTOR', true );
}

if ( ! defined( 'EASYEL_EXTENSION_BADGE' ) ) {
	define( 'EASYEL_EXTENSION_BADGE', '<span class="easy-extension-badge"></span>' );
}

require_once __DIR__ . '/vendor/autoload.php';

require_once EASYELEMENTS_DIR_PATH . 'includes/Hooks/mini-cart-ajax.php';

require_once EASYELEMENTS_DIR_PATH  . 'base.php';
```
