| 2227 | | return $this->add_additional_fields_schema( $schema ); |
| | 2227 | $schema = $this->add_additional_fields_schema( $schema ); |
| | 2228 | |
| | 2229 | /** |
| | 2230 | * Filter the post's schema. |
| | 2231 | * |
| | 2232 | * The dynamic part of the filter `$this->post_type` refers to the post |
| | 2233 | * type slug for the controller. |
| | 2234 | * |
| | 2235 | * @since 5.3.0 |
| | 2236 | * |
| | 2237 | * @param array $schema Item schema data. |
| | 2238 | * @param string $this->post_type Post type slug. |
| | 2239 | */ |
| | 2240 | return apply_filters( "rest_{$this->post_type}_item_schema", $schema, $this->post_type ); |