equal
deleted
inserted
replaced
9 /** |
9 /** |
10 * Class representing a block template. |
10 * Class representing a block template. |
11 * |
11 * |
12 * @since 5.8.0 |
12 * @since 5.8.0 |
13 */ |
13 */ |
|
14 #[AllowDynamicProperties] |
14 class WP_Block_Template { |
15 class WP_Block_Template { |
15 |
16 |
16 /** |
17 /** |
17 * Type: wp_template. |
18 * Type: wp_template. |
18 * |
19 * |
81 * Origin of the content when the content has been customized. |
82 * Origin of the content when the content has been customized. |
82 * When customized, origin takes on the value of source and source becomes |
83 * When customized, origin takes on the value of source and source becomes |
83 * 'custom'. |
84 * 'custom'. |
84 * |
85 * |
85 * @since 5.9.0 |
86 * @since 5.9.0 |
86 * @var string |
87 * @var string|null |
87 */ |
88 */ |
88 public $origin; |
89 public $origin; |
89 |
90 |
90 /** |
91 /** |
91 * Post ID. |
92 * Post ID. |
124 * Author. |
125 * Author. |
125 * |
126 * |
126 * A value of 0 means no author. |
127 * A value of 0 means no author. |
127 * |
128 * |
128 * @since 5.9.0 |
129 * @since 5.9.0 |
129 * @var int |
130 * @var int|null |
130 */ |
131 */ |
131 public $author; |
132 public $author; |
132 |
133 |
133 /** |
134 /** |
134 * Post types. |
135 * Post types. |
135 * |
136 * |
136 * @since 5.9.0 |
137 * @since 5.9.0 |
137 * @var array |
138 * @var string[]|null |
138 */ |
139 */ |
139 public $post_types; |
140 public $post_types; |
140 |
141 |
141 /** |
142 /** |
142 * Area. |
143 * Area. |
143 * |
144 * |
144 * @since 5.9.0 |
145 * @since 5.9.0 |
145 * @var string |
146 * @var string|null |
146 */ |
147 */ |
147 public $area; |
148 public $area; |
|
149 |
|
150 /** |
|
151 * Modified. |
|
152 * |
|
153 * @since 6.3.0 |
|
154 * @var string|null |
|
155 */ |
|
156 public $modified; |
148 } |
157 } |