Make WordPress Core

Changeset 62430


Ignore:
Timestamp:
05/29/2026 11:07:22 AM (6 months ago)
Author:
johnbillion
Message:

Docs: Remove duplicate documentation for the rest_block_hooks_post_types hook.

See #62715, #64896

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r61996 r62430  
    15021502                 * @since 7.0.0
    15031503                 *
    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.
    15071507                 */
    15081508                $content_like_post_types = apply_filters( 'rest_block_hooks_post_types', $content_like_post_types, $this->post_type, $prepared_post );
    … …  
    21732173                $content_like_post_types = array( 'post', 'page', 'wp_block', 'wp_navigation' );
    21742174
    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 */
    21872176                $content_like_post_types = apply_filters( 'rest_block_hooks_post_types', $content_like_post_types, $this->post_type, $post );
    21882177
Note: See TracChangeset for help on using the changeset viewer.