diff options
Diffstat (limited to 'src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php')
-rw-r--r-- | src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php index 1f1bf679c8..99fb67a06a 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php @@ -127,6 +127,7 @@ class WP_REST_Block_Patterns_Controller extends WP_REST_Controller { 'categories' => 'categories', 'keywords' => 'keywords', 'content' => 'content', + 'inserter' => 'inserter', ); $data = array(); foreach ( $keys as $item_key => $rest_key ) { @@ -202,6 +203,12 @@ class WP_REST_Block_Patterns_Controller extends WP_REST_Controller { 'readonly' => true, 'context' => array( 'view', 'edit', 'embed' ), ), + 'inserter' => array( + 'description' => __( 'Determines whether the pattern is visible in inserter.' ), + 'type' => 'boolean', + 'readonly' => true, + 'context' => array( 'view', 'edit', 'embed' ), + ), ), ); |