Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/elementor-pro   php

Repository URL to install this package:

Version: 3.2.1 

/ base-widget-trait.php

<?php
namespace ElementorPro\Base;

use ElementorPro\License\API as License_API;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

trait Base_Widget_Trait {

	public function is_editable() {
		$license_data = License_API::get_license_data();

		return in_array( $license_data['license'], [ License_API::STATUS_VALID, License_API::STATUS_EXPIRED ] );
	}
}