Filters which post types should have Block Hooks applied.
$content_like_post_typesstring[]$post_typestring$prepared_poststdClass|WP_Postwp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1508WP_REST_Posts_Controller::prepare_item_for_database()wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:2176WP_REST_Posts_Controller::prepare_item_for_response() * @since 7.0.0 * * @param string[] $content_like_post_types Array of post type names that support Block Hooks. * @param string $post_type The current post type being processed. * @param stdClass|WP_Post $prepared_post The prepared post object. */ $content_like_post_types = apply_filters( 'rest_block_hooks_post_types', $content_like_post_types, $this->post_type, $prepared_post ); if ( in_array( $this->post_type, $content_like_post_types, true ) ) { $prepared_post = update_ignored_hooked_blocks_postmeta( $prepared_post ); } /**Introduced in 7.0.0. 2 changes between 7.0.4 and 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
$content_like_post_types retyped from array to string[].verified against source$prepared_post retyped from object to stdClass|WP_Post.verified against source