PluginProbe
Elementor Website Builder – more than just a page builder / 3.33.0-beta1
Elementor Website Builder – more than just a page builder v3.33.0-beta1
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / modules / components / documents / component.php

component.php in Elementor Website Builder – more than just a page builder 3.33.0-beta1, at modules/components/documents/component.php

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