Make WordPress Core


Ignore:
Timestamp:
06/26/2020 12:44:44 AM (4 years ago)
Author:
TimothyBlynJacobs
Message:

REST API: Introduce Block Types endpoint.

This endpoint allows a user to retrieve the block type definition for all server-side registered block types.

Props spacedmonkey, aduth, gziolo, ocean90, TimothyBlynJacobs.
Fixes #47620.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r48159 r48173  
    254254require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-search-controller.php';
    255255require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-blocks-controller.php';
     256require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-block-types-controller.php';
    256257require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-block-renderer-controller.php';
    257258require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-settings-controller.php';
Note: See TracChangeset for help on using the changeset viewer.