1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
<?php namespace Elementor\Modules\Components\Documents;
use Elementor\Core\Base\Document;
if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly }
class Component extends Document { const TYPE = 'elementor_component';
public static function get_properties() { $properties = parent::get_properties();
$properties['cpt'] = [ self::TYPE ];
return $properties; }
public static function get_type() { return self::TYPE; }
public static function get_title() { return esc_html__( 'Component', 'elementor' ); }
public static function get_plural_title() { return esc_html__( 'Components', 'elementor' ); }
public static function get_labels(): array { $plural_label = static::get_plural_title(); $singular_label = static::get_title();
$labels = [ 'name' => $plural_label, 'singular_name' => $singular_label, ];
return $labels; }
public static function get_supported_features(): array { return [ 'title', 'author', 'thumbnail', 'custom-fields', 'revisions', 'elementor', ]; } }
|