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

apply_filters('rest_prepare_attachment') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php line 932
    		 * @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: