Title: WP_REST_Controller::get_item_permissions_check
Published: December 6, 2016
Last modified: April 28, 2025

---

# WP_REST_Controller::get_item_permissions_check( WP_REST_Request $request ): true|󠀁[WP_Error](https://developer.wordpress.org/reference/classes/wp_error/)󠁿

## In this article

 * [Parameters](https://developer.wordpress.org/reference/classes/wp_rest_controller/get_item_permissions_check/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/classes/wp_rest_controller/get_item_permissions_check/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_rest_controller/get_item_permissions_check/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_rest_controller/get_item_permissions_check/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_rest_controller/get_item_permissions_check/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_rest_controller/get_item_permissions_check/?output_format=md#wp--skip-link--target)

Checks if a given request has access to get a specific item.

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/wp_rest_controller/get_item_permissions_check/?output_format=md#parameters)󠁿

 `$request`[WP_REST_Request](https://developer.wordpress.org/reference/classes/wp_rest_request/)
required

Full details about the request.

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_rest_controller/get_item_permissions_check/?output_format=md#return)󠁿

 true|[WP_Error](https://developer.wordpress.org/reference/classes/wp_error/) True
if the request has read access for the item, [WP_Error](https://developer.wordpress.org/reference/classes/wp_error/)
object otherwise.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_rest_controller/get_item_permissions_check/?output_format=md#source)󠁿

    ```php
    public function get_item_permissions_check( $request ) {
    	return new WP_Error(
    		'invalid-method',
    		/* translators: %s: Method name. */
    		sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ),
    		array( 'status' => 405 )
    	);
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/rest-api/endpoints/class-wp-rest-controller.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php#L100)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php#L100-L107)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_rest_controller/get_item_permissions_check/?output_format=md#related)󠁿

| Uses | Description | 
| [__()](https://developer.wordpress.org/reference/functions/__/)`wp-includes/l10n.php` |

Retrieves the translation of $text.

  | 
| [WP_Error::__construct()](https://developer.wordpress.org/reference/classes/wp_error/__construct/)`wp-includes/class-wp-error.php` |

Initializes the error.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_rest_controller/get_item_permissions_check/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.7.0](https://developer.wordpress.org/reference/since/4.7.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_rest_controller%2Fget_item_permissions_check%2F)
before being able to contribute a note or feedback.