Checks if a given request has access to create a post.
public create_item_permissions_check ( WP_REST_Request $request ) : true | WP_Error | ||
$request | WP_REST_Request | Full details about the request. |
return | true | WP_Error | True if the request has access to create items, WP_Error object otherwise. |