rest_prepare_attachment

rest_prepare_attachment

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('rest_prepare_attachment') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php line 932
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
         * @param WP_REST_Response $response The response object.
         * @param WP_Post          $post     The original attachment post.
         * @param WP_REST_Request  $request  Request used to generate the response.
         */
        return apply_filters( 'rest_prepare_attachment', $response, $post, $request );
    }
     
    /**
     * Retrieves the attachment's schema, conforming to JSON Schema.
     *
     * @since 4.7.0

See this hook used in plugins: