mirror of
https://github.com/proelements/proelements.git
synced 2026-04-05 20:13:47 +00:00
v3.33.1
This commit is contained in:
18
base/base-widget-trait.php
Normal file
18
base/base-widget-trait.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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() {
|
||||
return License_API::is_license_active();
|
||||
}
|
||||
|
||||
public function get_categories() {
|
||||
return [ 'pro-elements' ];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user