Skip to content

Commit

Permalink
Enable revisions for PRODUCTS_POST_META_KEY
Browse files Browse the repository at this point in the history
  • Loading branch information
Swanand01 committed Jun 24, 2024
1 parent c90e1cc commit 5b68a03
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions includes/Shopping/Product_Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,19 @@ public function register_meta(): void {
'post',
self::PRODUCTS_POST_META_KEY,
[
'type' => 'object',
'description' => __( 'Products', 'web-stories' ),
'show_in_rest' => [
'type' => 'object',
'description' => __( 'Products', 'web-stories' ),
'show_in_rest' => [
'schema' => [
'type' => 'object',
'properties' => [],
'additionalProperties' => true,
],
],
'default' => [],
'single' => true,
'object_subtype' => $this->story_post_type::POST_TYPE_SLUG,
'default' => [],
'single' => true,
'object_subtype' => $this->story_post_type::POST_TYPE_SLUG,
'revisions_enabled' => true,
]
);
}
Expand Down

0 comments on commit 5b68a03

Please sign in to comment.