Changeset 62430
- Timestamp:
- 05/29/2026 11:07:22 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r61996 r62430 1502 1502 * @since 7.0.0 1503 1503 * 1504 * @param array$content_like_post_types Array of post type names that support Block Hooks.1505 * @param string $post_type The current post type being processed.1506 * @param object $prepared_post The prepared post object.1504 * @param string[] $content_like_post_types Array of post type names that support Block Hooks. 1505 * @param string $post_type The current post type being processed. 1506 * @param stdClass|WP_Post $prepared_post The prepared post object. 1507 1507 */ 1508 1508 $content_like_post_types = apply_filters( 'rest_block_hooks_post_types', $content_like_post_types, $this->post_type, $prepared_post ); … … 2173 2173 $content_like_post_types = array( 'post', 'page', 'wp_block', 'wp_navigation' ); 2174 2174 2175 /** 2176 * Filters which post types should have Block Hooks applied. 2177 * 2178 * Allows themes and plugins to add or remove post types that should 2179 * have Block Hooks functionality enabled in the REST API. 2180 * 2181 * @since 7.0.0 2182 * 2183 * @param array $content_like_post_types Array of post type names that support Block Hooks. 2184 * @param string $post_type The current post type being processed. 2185 * @param WP_Post $post The post object. 2186 */ 2175 /** This filter is documented in wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php */ 2187 2176 $content_like_post_types = apply_filters( 'rest_block_hooks_post_types', $content_like_post_types, $this->post_type, $post ); 2188 2177
Note:
See TracChangeset
for help on using the changeset viewer.